pub enum Expandable<T: Object> {
Id(T::Id),
Object(Box<T>),
}
Expand description
An id or object.
By default stripe will return an id for most fields, but if more detail is
necessary the expand
parameter can be provided to ask for the id to be
loaded as an object instead.
For more details see https://stripe.com/docs/api/expanding_objects.
Variants§
Implementations§
Trait Implementations§
Source§impl<T: Clone + Object> Clone for Expandable<T>
impl<T: Clone + Object> Clone for Expandable<T>
Source§fn clone(&self) -> Expandable<T>
fn clone(&self) -> Expandable<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<T: Object> Default for Expandable<T>
impl<T: Object> Default for Expandable<T>
Source§impl<T> Deserialize for Expandable<T>
impl<T> Deserialize for Expandable<T>
Auto Trait Implementations§
impl<T> Freeze for Expandable<T>
impl<T> RefUnwindSafe for Expandable<T>
impl<T> Send for Expandable<T>
impl<T> Sync for Expandable<T>
impl<T> Unpin for Expandable<T>
impl<T> UnwindSafe for Expandable<T>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more