[−][src]Struct pinata_sdk::PinListFilterBuilder
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]
Trait Implementations
impl Clone for PinListFilterBuilder
[src]
fn clone(&self) -> PinListFilterBuilder
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Default for PinListFilterBuilder
[src]
fn default() -> PinListFilterBuilder
[src]
Auto Trait Implementations
impl RefUnwindSafe for PinListFilterBuilder
impl Send for PinListFilterBuilder
impl Sync for PinListFilterBuilder
impl Unpin for PinListFilterBuilder
impl UnwindSafe for PinListFilterBuilder
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,