pub struct TaskComment {
pub id: String,
pub task_id: String,
pub content: String,
pub created_at: DateTime<FixedOffset>,
pub updated_at: DateTime<FixedOffset>,
pub author: Box<TaskCommentAuthor>,
}Fields§
§id: String§task_id: String§content: String§created_at: DateTime<FixedOffset>§updated_at: DateTime<FixedOffset>Implementations§
Source§impl TaskComment
impl TaskComment
pub fn new( id: String, task_id: String, content: String, created_at: DateTime<FixedOffset>, updated_at: DateTime<FixedOffset>, author: TaskCommentAuthor, ) -> TaskComment
Trait Implementations§
Source§impl Clone for TaskComment
impl Clone for TaskComment
Source§fn clone(&self) -> TaskComment
fn clone(&self) -> TaskComment
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 TaskComment
impl Debug for TaskComment
Source§impl Default for TaskComment
impl Default for TaskComment
Source§fn default() -> TaskComment
fn default() -> TaskComment
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TaskComment
impl<'de> Deserialize<'de> for TaskComment
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
Source§impl PartialEq for TaskComment
impl PartialEq for TaskComment
Source§fn eq(&self, other: &TaskComment) -> bool
fn eq(&self, other: &TaskComment) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for TaskComment
impl Serialize for TaskComment
impl StructuralPartialEq for TaskComment
Auto Trait Implementations§
impl Freeze for TaskComment
impl RefUnwindSafe for TaskComment
impl Send for TaskComment
impl Sync for TaskComment
impl Unpin for TaskComment
impl UnsafeUnpin for TaskComment
impl UnwindSafe for TaskComment
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