pub enum DraftState {
Draft,
Outdated,
Sent,
}Expand description
Where a draft comment is.
Variants§
Draft
In the tray.
Outdated
Its quote is no longer where it was anchored: sent only if kept.
Sent
Sent in a revision turn.
Trait Implementations§
Source§impl Clone for DraftState
impl Clone for DraftState
impl Copy for DraftState
Source§impl Debug for DraftState
impl Debug for DraftState
Source§impl<'de> Deserialize<'de> for DraftState
impl<'de> Deserialize<'de> for DraftState
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
impl Eq for DraftState
Source§impl JsonSchema for DraftState
impl JsonSchema for DraftState
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for DraftState
impl PartialEq for DraftState
Source§impl Serialize for DraftState
impl Serialize for DraftState
impl StructuralPartialEq for DraftState
Auto Trait Implementations§
impl Freeze for DraftState
impl RefUnwindSafe for DraftState
impl Send for DraftState
impl Sync for DraftState
impl Unpin for DraftState
impl UnsafeUnpin for DraftState
impl UnwindSafe for DraftState
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