Struct samling::UpdatePrice
source · pub struct UpdatePrice {
pub type: Option<PriceType>,
pub uom: Option<String>,
pub currency: Option<String>,
pub amount: Option<Decimal>,
pub start: Option<Date>,
pub end: Option<Date>,
pub style: Option<Ref<Style>>,
pub list: Option<Ref<PriceList>>,
pub external_id: Option<ExternalId<Price>>,
}Expand description
Price set, for update
Fields§
§type: Option<PriceType>§uom: Option<String>§currency: Option<String>§amount: Option<Decimal>§start: Option<Date>§end: Option<Date>§style: Option<Ref<Style>>§list: Option<Ref<PriceList>>§external_id: Option<ExternalId<Price>>Trait Implementations§
source§impl Clone for UpdatePrice
impl Clone for UpdatePrice
source§fn clone(&self) -> UpdatePrice
fn clone(&self) -> UpdatePrice
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 UpdatePrice
impl Debug for UpdatePrice
source§impl<'de> Deserialize<'de> for UpdatePrice
impl<'de> Deserialize<'de> for UpdatePrice
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
source§impl ExternalIdEntity for UpdatePrice
impl ExternalIdEntity for UpdatePrice
type RefTarget = Price
fn external_id(&self) -> Option<ExternalId<Self::RefTarget>>
fn set_external_id(&mut self, value: ExternalId<Self::RefTarget>)
fn update_external_id_from_ref(&mut self, ref_: &Ref<Self::RefTarget>)
fn ensure_available_external_id<'life0, 'life1, 'async_trait>(
&'life0 self,
client: &'life1 impl 'async_trait + GenericClient,
organization_id: Id<Organization>
) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
source§impl From<CreatePrice> for UpdatePrice
impl From<CreatePrice> for UpdatePrice
source§fn from(price: CreatePrice) -> Self
fn from(price: CreatePrice) -> Self
Converts to this type from the input type.