pub struct UpdatePrice {
pub type: Option<PriceType>,
pub uom: Option<String>,
pub currency: Option<String>,
pub amount: Option<Decimal>,
pub start: Option<NaiveDate>,
pub end: Option<NaiveDate>,
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<NaiveDate>§end: Option<NaiveDate>§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 duplicate 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>)
async fn ensure_available_external_id( &self, client: &impl GenericClient, organization_id: Id<Organization>, ) -> Result<()>
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.
Auto Trait Implementations§
impl Freeze for UpdatePrice
impl RefUnwindSafe for UpdatePrice
impl Send for UpdatePrice
impl Sync for UpdatePrice
impl Unpin for UpdatePrice
impl UnwindSafe for UpdatePrice
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more