pub struct PageEditorState {
pub user_id: String,
pub display_name: String,
pub avatar_url: Option<String>,
pub page_key: String,
pub page_index: i32,
pub page_name: String,
pub mode: String,
pub editor_state: String,
pub acquired_at: i64,
}Expand description
在线编辑者状态(与前端 TranslatorPageEditorState 对齐,snake_case)
Fields§
§user_id: String用户 ID(组员 ID 字符串)
display_name: String展示名称
avatar_url: Option<String>头像 URL
page_key: String页面键
page_index: i32页面序号
page_name: String页面名称
mode: String编辑模式(translate / proofread)
editor_state: String编辑状态(viewing / lock_holder)
acquired_at: i64获取时间戳(毫秒)
Trait Implementations§
Source§impl Clone for PageEditorState
impl Clone for PageEditorState
Source§fn clone(&self) -> PageEditorState
fn clone(&self) -> PageEditorState
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 PageEditorState
impl Debug for PageEditorState
Source§impl Default for PageEditorState
impl Default for PageEditorState
Source§fn default() -> PageEditorState
fn default() -> PageEditorState
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PageEditorStatewhere
PageEditorState: Default,
impl<'de> Deserialize<'de> for PageEditorStatewhere
PageEditorState: Default,
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 PageEditorState
impl RefUnwindSafe for PageEditorState
impl Send for PageEditorState
impl Sync for PageEditorState
impl Unpin for PageEditorState
impl UnsafeUnpin for PageEditorState
impl UnwindSafe for PageEditorState
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