Struct hrobot::api::ordering::PurchasedProduct
source · pub struct PurchasedProduct {
pub id: ProductId,
pub name: String,
pub description: Vec<String>,
pub traffic_limit: Option<ByteSize>,
pub distribution: String,
pub language: String,
pub location: Option<Location>,
}Expand description
Describes a product purchase, as listed in a ProductTransaction.
Fields§
§id: ProductIdUnique identifier for this product type.
name: StringHuman-readable name for this product.
description: Vec<String>Human-readable list of features for this product.
traffic_limit: Option<ByteSize>Monthly traffic limitation if any, e.g. 5 TB.
distribution: StringDistribution selected for the purchased product.
language: StringLanguage selected for the product.
location: Option<Location>Location of the purchased product.
Trait Implementations§
source§impl Clone for PurchasedProduct
impl Clone for PurchasedProduct
source§fn clone(&self) -> PurchasedProduct
fn clone(&self) -> PurchasedProduct
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 Debug for PurchasedProduct
impl Debug for PurchasedProduct
source§impl<'de> Deserialize<'de> for PurchasedProduct
impl<'de> Deserialize<'de> for PurchasedProduct
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 Freeze for PurchasedProduct
impl RefUnwindSafe for PurchasedProduct
impl Send for PurchasedProduct
impl Sync for PurchasedProduct
impl Unpin for PurchasedProduct
impl UnwindSafe for PurchasedProduct
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