pub struct TrashEntry {Show 18 fields
pub entry_id: TrashEntryId,
pub id: ContentId,
pub kind: ContentKind,
pub post_id: PostId,
pub title: Option<String>,
pub post_title: Option<String>,
pub excerpt: String,
pub body: Option<String>,
pub created_at: DateTime<Utc>,
pub deleted_at: DateTime<Utc>,
pub deleted_by: DeletedBy,
pub cleanup: Option<CleanupNote>,
pub removed_with_post: Option<PostId>,
pub can_restore: bool,
pub can_delete_permanently: bool,
pub note: Option<String>,
pub restored_at: Option<DateTime<Utc>>,
pub erased_at: Option<DateTime<Utc>>,
}Expand description
One post or comment in its author’s trash.
Everything the author has deleted, and everything the platform’s operators removed from it, stays here until the author restores or erases it: there is no automatic emptying. Moderation removals are not here; they are appealed.
Fields§
§entry_id: TrashEntryId§id: ContentIdThe post or comment
kind: ContentKind§post_id: PostIdThe post itself, or the post a comment is on
title: Option<String>A post’s title
post_title: Option<String>The title of the post a comment is on
excerpt: StringThe start of the text, about 280 characters; empty once erased
body: Option<String>The whole text, only when one item was asked for
created_at: DateTime<Utc>When it was first posted; a restore keeps this date
deleted_at: DateTime<Utc>§deleted_by: DeletedBy§cleanup: Option<CleanupNote>The cleanup pass that removed it, when one did
removed_with_post: Option<PostId>The post this comment went with, when it was removed because that post was; restoring the post restores it too
can_restore: bool§can_delete_permanently: bool§note: Option<String>Why it cannot be restored or erased, or anything else to know
restored_at: Option<DateTime<Utc>>Export only: when it was restored
erased_at: Option<DateTime<Utc>>Export only: when it was erased (its text is gone)