pub struct DeleteContent<T> {
pub target: T,
}Expand description
Move your own post or comment to your trash. T is how target is
given, as in CreateComment: DeleteContentInput for the tool,
DeleteContentPayload for what is signed
(POST /api/social/delete-content)
Fields§
§target: TYour post or comment
Trait Implementations§
Source§impl<T: Clone> Clone for DeleteContent<T>
impl<T: Clone> Clone for DeleteContent<T>
Source§impl<T: Debug> Debug for DeleteContent<T>
impl<T: Debug> Debug for DeleteContent<T>
Source§impl<'de, T> Deserialize<'de> for DeleteContent<T>where
T: ContentField,
impl<'de, T> Deserialize<'de> for DeleteContent<T>where
T: ContentField,
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
impl<T: Eq> Eq for DeleteContent<T>
Source§impl<'a> From<&'a DeleteContent<ContentId>> for SignedAction<'a>
impl<'a> From<&'a DeleteContent<ContentId>> for SignedAction<'a>
Source§fn from(p: &'a DeleteContentPayload) -> Self
fn from(p: &'a DeleteContentPayload) -> Self
Converts to this type from the input type.
Source§impl<T: PartialEq> PartialEq for DeleteContent<T>
impl<T: PartialEq> PartialEq for DeleteContent<T>
Source§impl<T> Serialize for DeleteContent<T>where
T: Serialize,
impl<T> Serialize for DeleteContent<T>where
T: Serialize,
impl<T: PartialEq> StructuralPartialEq for DeleteContent<T>
Auto Trait Implementations§
impl<T> Freeze for DeleteContent<T>where
T: Freeze,
impl<T> RefUnwindSafe for DeleteContent<T>where
T: RefUnwindSafe,
impl<T> Send for DeleteContent<T>where
T: Send,
impl<T> Sync for DeleteContent<T>where
T: Sync,
impl<T> Unpin for DeleteContent<T>where
T: Unpin,
impl<T> UnsafeUnpin for DeleteContent<T>where
T: UnsafeUnpin,
impl<T> UnwindSafe for DeleteContent<T>where
T: UnwindSafe,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.