pub struct PinInfo {
pub cid: String,
pub mode: PinMode,
pub name: Option<String>,
}Expand description
Information about a pin
Fields§
§cid: StringCID of the pinned block
mode: PinModePin mode
name: Option<String>Optional name for the pin
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PinInfo
impl<'de> Deserialize<'de> for PinInfo
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 PinInfo
impl RefUnwindSafe for PinInfo
impl Send for PinInfo
impl Sync for PinInfo
impl Unpin for PinInfo
impl UnsafeUnpin for PinInfo
impl UnwindSafe for PinInfo
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