[][src]Struct pinata_sdk::PinListItem

pub struct PinListItem {
    pub id: String,
    pub ipfs_pin_hash: String,
    pub size: usize,
    pub user_id: String,
    pub date_pinned: String,
    pub data_unpinned: Option<String>,
    pub metadata: PinListMetadata,
    pub regions: Vec<PinListItemRegionPolicy>,
}

A pinned item gotten from get PinList request

This is usually as part of the PinList struct which is gotten as response

Fields

id: String

The id of this pin item record

ipfs_pin_hash: String

The IPFS multihash for this items content

size: usize

Size in bytes of the content pinned

user_id: String

Users Pinata id

date_pinned: String

ISO 8601 timestamp for when this content was pinned.

data_unpinned: Option<String>

ISO 8601 timestamp for when this content was unpinned.

Is None for content that is not yet unpinned

metadata: PinListMetadata

Metadata of the original uploaded files

regions: Vec<PinListItemRegionPolicy>

Region Policy set on the item

Trait Implementations

impl Debug for PinListItem[src]

impl<'de> Deserialize<'de> for PinListItem[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.