[−][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
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]
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> Serialize for List<T> where
T: Serialize,
[src]
T: Serialize,
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
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>,
Auto Trait Implementations
impl<T> Unpin for List<T> where
T: Unpin,
T: Unpin,
impl<T> Sync for List<T> where
T: Sync,
T: Sync,
impl<T> Send for List<T> where
T: Send,
T: Send,
impl<T> UnwindSafe for List<T> where
T: UnwindSafe,
T: UnwindSafe,
impl<T> RefUnwindSafe for List<T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
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> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for 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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,
impl<T> Erased for T
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
U: TryFrom<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self