[−][src]Struct stripe::List
A single page of a cursor-paginated list of an object.
Fields
data: Vec<T>
has_more: bool
total_count: Option<u64>
url: String
Implementations
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.
Requires feature = "blocking"
.
pub fn next(&self, client: &Client) -> Response<List<T>>
[src][−]
Fetch an additional page of data from stripe.
Trait Implementations
impl<T: Clone> Clone for List<T>
[src][+]
impl<T: Debug> Debug for List<T>
[src][+]
impl<T> Default for List<T>
[src][+]
impl<'de, T> Deserialize<'de> for List<T> where
T: Deserialize<'de>,
[src][+]
T: Deserialize<'de>,
impl<T> Serialize for List<T> where
T: Serialize,
[src][+]
T: Serialize,
Auto Trait Implementations
impl<T> RefUnwindSafe for List<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<T> Send for List<T> where
T: Send,
T: Send,
impl<T> Sync for List<T> where
T: Sync,
T: Sync,
impl<T> Unpin for List<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for List<T> where
T: UnwindSafe,
T: UnwindSafe,
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,
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src][+]
impl<T, U> Into<U> for T where
U: From<T>,
[src][+]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src][+]
T: Clone,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src][+]
U: Into<T>,
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src][+]
U: TryFrom<T>,