pub enum DocumentState {
Draft = 0,
Review = 1,
Locked = 2,
Archived = 3,
}Expand description
Lifecycle state of a collaborative document.
Matches the TypeScript DocumentState type exactly.
Variants§
Implementations§
Source§impl DocumentState
impl DocumentState
Sourcepub fn from_str_name(s: &str) -> Option<Self>
pub fn from_str_name(s: &str) -> Option<Self>
Parse a state from its string representation (case-insensitive).
Sourcepub fn allowed_targets(&self) -> &'static [DocumentState]
pub fn allowed_targets(&self) -> &'static [DocumentState]
Return the allowed transition targets from this state.
Trait Implementations§
Source§impl Clone for DocumentState
impl Clone for DocumentState
Source§fn clone(&self) -> DocumentState
fn clone(&self) -> DocumentState
Returns a duplicate of the value. Read more
1.0.0 · 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 DocumentState
impl Debug for DocumentState
Source§impl Display for DocumentState
impl Display for DocumentState
Source§impl From<DocumentState> for JsValue
impl From<DocumentState> for JsValue
Source§fn from(value: DocumentState) -> Self
fn from(value: DocumentState) -> Self
Converts to this type from the input type.
Source§impl FromWasmAbi for DocumentState
impl FromWasmAbi for DocumentState
Source§impl Hash for DocumentState
impl Hash for DocumentState
Source§impl IntoWasmAbi for DocumentState
impl IntoWasmAbi for DocumentState
Source§impl OptionFromWasmAbi for DocumentState
impl OptionFromWasmAbi for DocumentState
Source§impl OptionIntoWasmAbi for DocumentState
impl OptionIntoWasmAbi for DocumentState
Source§impl PartialEq for DocumentState
impl PartialEq for DocumentState
Source§impl TryFromJsValue for DocumentState
impl TryFromJsValue for DocumentState
Source§impl VectorFromWasmAbi for DocumentState
impl VectorFromWasmAbi for DocumentState
type Abi = <Box<[JsValue]> as FromWasmAbi>::Abi
unsafe fn vector_from_abi(js: Self::Abi) -> Box<[DocumentState]>
Source§impl VectorIntoWasmAbi for DocumentState
impl VectorIntoWasmAbi for DocumentState
type Abi = <Box<[JsValue]> as IntoWasmAbi>::Abi
fn vector_into_abi(vector: Box<[DocumentState]>) -> Self::Abi
Source§impl WasmDescribeVector for DocumentState
impl WasmDescribeVector for DocumentState
impl Copy for DocumentState
impl Eq for DocumentState
impl StructuralPartialEq for DocumentState
Auto Trait Implementations§
impl Freeze for DocumentState
impl RefUnwindSafe for DocumentState
impl Send for DocumentState
impl Sync for DocumentState
impl Unpin for DocumentState
impl UnsafeUnpin for DocumentState
impl UnwindSafe for DocumentState
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,
Source§impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
impl<T> ReturnWasmAbi for Twhere
T: IntoWasmAbi,
Source§type Abi = <T as IntoWasmAbi>::Abi
type Abi = <T as IntoWasmAbi>::Abi
Same as
IntoWasmAbi::AbiSource§fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
fn return_abi(self) -> <T as ReturnWasmAbi>::Abi
Same as
IntoWasmAbi::into_abi, except that it may throw and never
return in the case of Err.