pub struct CommentDraft {
pub id: String,
pub anchor: CommentAnchor,
pub text: String,
pub by: String,
pub at: u64,
pub state: DraftState,
pub kept: bool,
}Expand description
One comment in the tray.
Fields§
§id: Stringc1, c2, …
anchor: CommentAnchorWhat it is about.
text: StringThe person’s words.
by: StringWho.
at: u64Unix seconds.
state: DraftStateWhere it is.
kept: boolThe person kept it although its quote moved.
Trait Implementations§
Source§impl Clone for CommentDraft
impl Clone for CommentDraft
Source§impl Debug for CommentDraft
impl Debug for CommentDraft
Source§impl<'de> Deserialize<'de> for CommentDraft
impl<'de> Deserialize<'de> for CommentDraft
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 CommentDraft
Source§impl JsonSchema for CommentDraft
impl JsonSchema for CommentDraft
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 CommentDraft
impl PartialEq for CommentDraft
Source§impl Serialize for CommentDraft
impl Serialize for CommentDraft
impl StructuralPartialEq for CommentDraft
Auto Trait Implementations§
impl Freeze for CommentDraft
impl RefUnwindSafe for CommentDraft
impl Send for CommentDraft
impl Sync for CommentDraft
impl Unpin for CommentDraft
impl UnsafeUnpin for CommentDraft
impl UnwindSafe for CommentDraft
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