[][src]Struct stripe::List

pub struct List<T> {
    pub data: Vec<T>,
    pub has_more: bool,
    pub total_count: Option<u64>,
    pub url: String,
}

A single page of a cursor-paginated list of an object.

Fields

data: Vec<T>has_more: booltotal_count: Option<u64>url: String

Methods

impl<T: DeserializeOwned + Send + 'static> List<T>[src]

pub fn get_next(client: &Client, url: &str, last_id: &str) -> Response<List<T>>[src]

Prefer List::next when possible

impl<T: Paginate + DeserializeOwned + Send + 'static> List<T>[src]

pub fn get_all(self, client: &Client) -> Response<Vec<T>>[src]

Repeatedly queries Stripe for more data until all elements in list are fetched, using Stripe's default page size.

Not supported by stripe::async::Client.

pub fn next(&self, client: &Client) -> Response<List<T>>[src]

Fetch an additional page of data from stripe.

Trait Implementations

impl<T> Default for List<T>[src]

impl<T: Clone> Clone for List<T>[src]

impl<T: Debug> Debug for List<T>[src]

impl<T> Serialize for List<T> where
    T: Serialize
[src]

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

Auto Trait Implementations

impl<T> Unpin for List<T> where
    T: Unpin

impl<T> Sync for List<T> where
    T: Sync

impl<T> Send for List<T> where
    T: Send

impl<T> UnwindSafe for List<T> where
    T: UnwindSafe

impl<T> RefUnwindSafe for List<T> where
    T: RefUnwindSafe

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

impl<T> From<T> for 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.

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

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

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

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

impl<T> Erased for T

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

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

impl<T> Same<T> for T

type Output = T

Should always be Self