Enum stripe::Expandable
source · 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:
ⓘ
Charge::retrieve(&client, &charge_id, &["invoice.customer"])
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 copy 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<'de, T> Deserialize<'de> for Expandable<T>
impl<'de, T> Deserialize<'de> for Expandable<T>
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
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