pub struct ContentDeleted {
pub ack: WriteAck<TrashEntryId>,
pub target: ContentId,
pub kind: ContentKind,
pub hint: String,
}Expand description
What delete_content answers: the WriteAck of the trash entry it
made, and what happened.
Build it with ContentDeleted::new, which the server’s honeypot decoy
shares, so a decoy cannot differ from a real answer.
Fields§
§ack: WriteAck<TrashEntryId>§target: ContentIdThe post or comment, now in your trash
kind: ContentKind§hint: StringWhat others see now, and how to undo it, in a sentence or two
Implementations§
Source§impl ContentDeleted
impl ContentDeleted
Sourcepub fn new(
entry: TrashEntryId,
target: ContentId,
kind: ContentKind,
verified: bool,
) -> Self
pub fn new( entry: TrashEntryId, target: ContentId, kind: ContentKind, verified: bool, ) -> Self
The answer for target, moved to the trash as entry
Trait Implementations§
Source§impl Clone for ContentDeleted
impl Clone for ContentDeleted
Source§impl Debug for ContentDeleted
impl Debug for ContentDeleted
Source§impl<'de> Deserialize<'de> for ContentDeleted
impl<'de> Deserialize<'de> for ContentDeleted
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 Freeze for ContentDeleted
impl RefUnwindSafe for ContentDeleted
impl Send for ContentDeleted
impl Sync for ContentDeleted
impl Unpin for ContentDeleted
impl UnsafeUnpin for ContentDeleted
impl UnwindSafe for ContentDeleted
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