pub struct CreateComment {
pub content: String,
pub post_id: PostId,
pub parent_id: Option<CommentId>,
pub language_id: Option<LanguageId>,
}Expand description
Create a comment.
Fields§
§content: String§post_id: PostId§parent_id: Option<CommentId>§language_id: Option<LanguageId>Trait Implementations§
Source§impl Clone for CreateComment
impl Clone for CreateComment
Source§fn clone(&self) -> CreateComment
fn clone(&self) -> CreateComment
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 CreateComment
impl Debug for CreateComment
Source§impl Default for CreateComment
impl Default for CreateComment
Source§fn default() -> CreateComment
fn default() -> CreateComment
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CreateComment
impl<'de> Deserialize<'de> for CreateComment
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 CreateComment
Source§impl Hash for CreateComment
impl Hash for CreateComment
Source§impl PartialEq for CreateComment
impl PartialEq for CreateComment
Source§impl Serialize for CreateComment
impl Serialize for CreateComment
impl StructuralPartialEq for CreateComment
Auto Trait Implementations§
impl Freeze for CreateComment
impl RefUnwindSafe for CreateComment
impl Send for CreateComment
impl Sync for CreateComment
impl Unpin for CreateComment
impl UnsafeUnpin for CreateComment
impl UnwindSafe for CreateComment
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