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>where
T::Id: Clone,
impl<T: Clone + Object> Clone for Expandable<T>where T::Id: Clone,
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<'de, T> Deserialize<'de> for Expandable<T>where
T: Deserialize<'de> + Object,
T::Id: Deserialize<'de>,
impl<'de, T> Deserialize<'de> for Expandable<T>where T: Deserialize<'de> + Object, T::Id: Deserialize<'de>,
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