pub struct PinPost {
pub id: String,
pub postion: Option<u64>,
}Expand description
A struct describing how to pin or unpin a post to a collection
Fields§
§id: StringPost ID
postion: Option<u64>Pin position (should not be used with unpin)
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PinPost
impl<'de> Deserialize<'de> for PinPost
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 PinPost
impl RefUnwindSafe for PinPost
impl Send for PinPost
impl Sync for PinPost
impl Unpin for PinPost
impl UnwindSafe for PinPost
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