[][src]Struct pinata_sdk::PinOptions

pub struct PinOptions {
    pub host_nodes: Option<Vec<String>>,
    pub custom_pin_policy: Option<PinPolicy>,
    pub cid_version: Option<u8>,
}

Used to add additional options when pinning by hash

Fields

host_nodes: Option<Vec<String>>

multiaddresses of nodes your content is already stored on

custom_pin_policy: Option<PinPolicy>

Custom pin policy for the piece of content being pinned

cid_version: Option<u8>

CID Version IPFS will use when creating a hash for your content

Trait Implementations

impl Serialize for PinOptions[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> 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.