pub struct NewComment {
pub body: CommentBody,
pub author: Option<String>,
}Expand description
One comment to add to a task.
Fields§
§body: CommentBodyWhat it says.
Who wrote it, when the caller says.
A source that records the author itself — a hosted service that knows which account is signed in — refuses a comment carrying one rather than dropping it, naming why: quietly posting under another name than the one asked for is the one wrong answer here.
Trait Implementations§
Source§impl Clone for NewComment
impl Clone for NewComment
Source§fn clone(&self) -> NewComment
fn clone(&self) -> NewComment
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 NewComment
impl Debug for NewComment
Source§impl<'de> Deserialize<'de> for NewComment
impl<'de> Deserialize<'de> for NewComment
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 NewComment
Source§impl JsonSchema for NewComment
impl JsonSchema for NewComment
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 NewComment
impl PartialEq for NewComment
Source§impl Serialize for NewComment
impl Serialize for NewComment
impl StructuralPartialEq for NewComment
Auto Trait Implementations§
impl Freeze for NewComment
impl RefUnwindSafe for NewComment
impl Send for NewComment
impl Sync for NewComment
impl Unpin for NewComment
impl UnsafeUnpin for NewComment
impl UnwindSafe for NewComment
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