[−][src]Struct stripe::List
A single page of a cursor-paginated list of an object.
Fields
data: Vec<T>has_more: booltotal_count: Option<u64>url: StringImplementations
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]
fn clone(&self) -> Self[src]
fn clone_from(&mut self, source: &Self)1.0.0[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>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>, [src]
__D: Deserializer<'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,
fn borrow_mut(&mut self) -> &mut T[src]
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,
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>,