Struct lemmy_db_schema::source::comment::Comment
source · pub struct Comment {Show 13 fields
pub id: CommentId,
pub creator_id: PersonId,
pub post_id: PostId,
pub content: String,
pub removed: bool,
pub published: DateTime<Utc>,
pub updated: Option<DateTime<Utc>>,
pub deleted: bool,
pub ap_id: DbUrl,
pub local: bool,
pub path: String,
pub distinguished: bool,
pub language_id: LanguageId,
}
Expand description
A comment.
Fields§
§id: CommentId
§creator_id: PersonId
§post_id: PostId
§content: String
§removed: bool
Whether the comment has been removed.
published: DateTime<Utc>
§updated: Option<DateTime<Utc>>
§deleted: bool
Whether the comment has been deleted by its creator.
ap_id: DbUrl
The federated activity id / ap_id.
local: bool
Whether the comment is local.
path: String
§distinguished: bool
Whether the comment has been distinguished(speaking officially) by a mod.
language_id: LanguageId
Trait Implementations§
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
source§impl PartialEq for Comment
impl PartialEq for Comment
impl Eq for Comment
impl StructuralEq for Comment
impl StructuralPartialEq for Comment
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