Struct lemmy_db_schema::source::post_report::PostReport
source · pub struct PostReport {
pub id: PostReportId,
pub creator_id: PersonId,
pub post_id: PostId,
pub original_post_name: String,
pub original_post_url: Option<DbUrl>,
pub original_post_body: Option<String>,
pub reason: String,
pub resolved: bool,
pub resolver_id: Option<PersonId>,
pub published: DateTime<Utc>,
pub updated: Option<DateTime<Utc>>,
}
Expand description
A post report.
Fields§
§id: PostReportId
§creator_id: PersonId
§post_id: PostId
§original_post_name: String
The original post title.
original_post_url: Option<DbUrl>
The original post url.
original_post_body: Option<String>
The original post body.
reason: String
§resolved: bool
§resolver_id: Option<PersonId>
§published: DateTime<Utc>
§updated: Option<DateTime<Utc>>
Trait Implementations§
source§impl Clone for PostReport
impl Clone for PostReport
source§fn clone(&self) -> PostReport
fn clone(&self) -> PostReport
Returns a copy of the value. Read more
1.0.0 · 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 PostReport
impl Debug for PostReport
source§impl<'de> Deserialize<'de> for PostReport
impl<'de> Deserialize<'de> for PostReport
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 PostReport
impl PartialEq for PostReport
source§fn eq(&self, other: &PostReport) -> bool
fn eq(&self, other: &PostReport) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for PostReport
impl Serialize for PostReport
impl Eq for PostReport
impl StructuralPartialEq for PostReport
Auto Trait Implementations§
impl Freeze for PostReport
impl RefUnwindSafe for PostReport
impl Send for PostReport
impl Sync for PostReport
impl Unpin for PostReport
impl UnwindSafe for PostReport
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