[][src]Struct pinata_sdk::PinListFilterBuilder

pub struct PinListFilterBuilder { /* fields omitted */ }

Builder for PinListFilter.

Methods

impl PinListFilterBuilder[src]

pub fn set_hash_contains(&mut self, value: String) -> &mut Self[src]

Filter on alphanumeric characters inside of pin hashes. Hashes which do not include the characters passed in will not be returned

pub fn set_pin_start(&mut self, value: String) -> &mut Self[src]

Exclude pin records that were pinned before the passed in "pinStart" datetime (must be in ISO_8601 format)

pub fn set_pin_end(&mut self, value: String) -> &mut Self[src]

(must be in ISO_8601 format) - Exclude pin records that were pinned after the passed in "pinEnd" datetime

pub fn set_unpin_start(&mut self, value: String) -> &mut Self[src]

(must be in ISO_8601 format) - Exclude pin records that were unpinned before the passed in "unpinStart" datetime

pub fn set_unpin_end(&mut self, value: String) -> &mut Self[src]

(must be in ISO_8601 format) - Exclude pin records that were unpinned after the passed in "unpinEnd" datetime

pub fn set_pin_size_min(&mut self, value: usize) -> &mut Self[src]

The minimum byte size that pin record you're looking for can have

pub fn set_pin_size_max(&mut self, value: usize) -> &mut Self[src]

The maximum byte size that pin record you're looking for can have

pub fn set_status(&mut self, value: PinListFilterStatus) -> &mut Self[src]

The status of pin lists results

pub fn set_metadata(&mut self, value: HashMap<String, String>) -> &mut Self[src]

Filter on metadata name or metadata keyvalues. If specifying a metadata[keyvalues] filter, you need to ensure that you encode the values as the recommended JSON accordingly. See the pinata docs here under the 'Metadata Querying' section for more details.

pub fn set_page_limit(&mut self, value: String) -> &mut Self[src]

This sets the amount of records that will be returned per API response. (Max 1000)

pub fn set_page_offset(&mut self, value: String) -> &mut Self[src]

This tells the API how far to offset the record responses. For example, if there's 30 records that match your query, and you passed in a pageLimit of 10, providing a pageOffset of 10 would return records 11-20

pub fn build(&self) -> Result<PinListFilter, String>[src]

Builds a new PinListFilter.

Errors

If a required field has not been initialized.

Trait Implementations

impl Clone for PinListFilterBuilder[src]

impl Default for PinListFilterBuilder[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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.