[][src]Struct mailchimp::iter::MalchimpIter

pub struct MalchimpIter<B> where
    B: BuildIter,
    B::FilterItem: ResourceFilter
{ pub builder: B, pub data: Vec<B::Item>, pub cur_filters: B::FilterItem, pub cur_it: u64, pub total_items: u64, pub api: Rc<MailchimpApi>, pub endpoint: String, }

Malchimp Iterator

Fields

builder: B

Builder

data: Vec<B::Item>

Data

cur_filters: B::FilterItem

Current Filter

cur_it: u64

Current Iterator Index

total_items: u64

Total items in collection

api: Rc<MailchimpApi>

Mailchimp API

endpoint: String

Endpoint

Methods

impl<B> MalchimpIter<B> where
    B: BuildIter,
    B::FilterItem: ResourceFilter,
    B::Collection: MailchimpCollection<B::Item> + DeserializeOwned + Default
[src]

pub fn get_collection(&self, filters: &B::FilterItem) -> B::Collection[src]

get_collection

Trait Implementations

impl<B: Clone> Clone for MalchimpIter<B> where
    B: BuildIter,
    B::FilterItem: ResourceFilter,
    B::Item: Clone,
    B::FilterItem: Clone
[src]

impl<B: Debug> Debug for MalchimpIter<B> where
    B: BuildIter,
    B::FilterItem: ResourceFilter,
    B::Item: Debug,
    B::FilterItem: Debug
[src]

impl<B> Iterator for MalchimpIter<B> where
    B: BuildIter,
    B::FilterItem: ResourceFilter,
    B::Collection: MailchimpCollection<B::Item> + DeserializeOwned + Default
[src]

type Item = B::Item

The type of the elements being iterated over.

Auto Trait Implementations

impl<B> !RefUnwindSafe for MalchimpIter<B>

impl<B> !Send for MalchimpIter<B>

impl<B> !Sync for MalchimpIter<B>

impl<B> Unpin for MalchimpIter<B> where
    B: Unpin,
    <B as BuildIter>::FilterItem: Unpin,
    <B as BuildIter>::Item: Unpin

impl<B> UnwindSafe for MalchimpIter<B> where
    B: UnwindSafe,
    <B as BuildIter>::FilterItem: UnwindSafe,
    <B as BuildIter>::Item: UnwindSafe

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<I> IntoIterator for I where
    I: Iterator
[src]

type Item = <I as Iterator>::Item

The type of the elements being iterated over.

type IntoIter = I

Which kind of iterator are we turning this into?

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.

impl<I> UnicodeNormalization<I> for I where
    I: Iterator<Item = char>,