pub struct Sku {Show 14 fields
pub id: String,
pub object: Object,
pub active: bool,
pub attributes: Option<HashMap<String, String>>,
pub created: i64,
pub currency: Currency,
pub image: Option<String>,
pub inventory: Inventory,
pub livemode: bool,
pub metadata: HashMap<String, String>,
pub package_dimensions: Option<PackageDimensions>,
pub price: i64,
pub product: String,
pub updated: i64,
}
Fields§
§id: String
§object: Object
§active: bool
§attributes: Option<HashMap<String, String>>
§created: i64
§currency: Currency
§image: Option<String>
§inventory: Inventory
§livemode: bool
§metadata: HashMap<String, String>
§package_dimensions: Option<PackageDimensions>
§price: i64
§product: String
§updated: i64
Implementations§
source§impl Sku
impl Sku
pub fn create<B: Serialize + StripeService>(
client: &Client,
param: B
) -> Result<Self>
pub fn retrieve(client: &Client, id: &str) -> Result<Self>
pub fn update<B: Serialize + StripeService>(
client: &Client,
id: &str,
param: B
) -> Result<Self>
pub fn list<B: Serialize + StripeService>(
client: &Client,
param: B
) -> Result<List<Self>>
pub fn delete(client: &Client, id: &str) -> Result<Deleted>
Trait Implementations§
source§impl<'de> Deserialize<'de> for Sku
impl<'de> Deserialize<'de> for Sku
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