pub struct EditorPageInfo {
pub page_id: i64,
pub episode_id: i32,
pub index: i32,
pub source_file_name: Option<String>,
pub image_url: String,
pub image_width: Option<i32>,
pub image_height: Option<i32>,
pub uploaded: bool,
pub translation_completed: bool,
}Expand description
编辑器页面信息(响应)
Fields§
§page_id: i64页面 ID
episode_id: i32所属话数 ID
index: i32页序号(从 0 起)
source_file_name: Option<String>压缩包内原始文件名
image_url: String图片访问 URL(图片 OSS / CDN 直链)
image_width: Option<i32>图片像素宽度
image_height: Option<i32>图片像素高度
uploaded: bool图片是否已上传
translation_completed: bool该页翻译是否已确认完成
Trait Implementations§
Source§impl Clone for EditorPageInfo
impl Clone for EditorPageInfo
Source§fn clone(&self) -> EditorPageInfo
fn clone(&self) -> EditorPageInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for EditorPageInfo
impl Debug for EditorPageInfo
Source§impl<'de> Deserialize<'de> for EditorPageInfo
impl<'de> Deserialize<'de> for EditorPageInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for EditorPageInfo
impl RefUnwindSafe for EditorPageInfo
impl Send for EditorPageInfo
impl Sync for EditorPageInfo
impl Unpin for EditorPageInfo
impl UnsafeUnpin for EditorPageInfo
impl UnwindSafe for EditorPageInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request