Struct assemblyline_models::datastore::file::Comment
source · pub struct Comment {
pub cid: String,
pub uname: String,
pub date: DateTime<Utc>,
pub text: Text,
pub reactions: Vec<Reaction>,
}Expand description
Comment Model
Fields§
§cid: StringComment ID
uname: StringUsername of the user who made the comment
date: DateTime<Utc>Datetime the comment was made on
text: TextText of the comment written by the author
reactions: Vec<Reaction>List of reactions made on a comment
Trait Implementations§
source§impl Described<ElasticMeta> for Comment
impl Described<ElasticMeta> for Comment
source§fn metadata() -> Descriptor<ElasticMeta>
fn metadata() -> Descriptor<ElasticMeta>
Get self description of this type
source§impl<'de> Deserialize<'de> for Comment
impl<'de> Deserialize<'de> for Comment
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
Auto Trait Implementations§
impl RefUnwindSafe for Comment
impl Send for Comment
impl Sync for Comment
impl Unpin for Comment
impl UnwindSafe for Comment
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