pub struct PriceUpdateField {
pub type_: String,
pub value: f64,
pub round_to_whole: Option<bool>,
}Available on crate feature
products only.Expand description
PriceUpdateField from the GoHighLevel OpenAPI spec.
Fields§
§type_: StringType of price update
Allowed values: INCREASE_BY_AMOUNT, REDUCE_BY_AMOUNT, SET_NEW_PRICE,
INCREASE_BY_PERCENTAGE, REDUCE_BY_PERCENTAGE.
Required by the API.
value: f64Value to update (amount or percentage based on type) Required by the API.
round_to_whole: Option<bool>Round to nearest whole number
Trait Implementations§
Source§impl Clone for PriceUpdateField
impl Clone for PriceUpdateField
Source§fn clone(&self) -> PriceUpdateField
fn clone(&self) -> PriceUpdateField
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 PriceUpdateField
impl Debug for PriceUpdateField
Source§impl Default for PriceUpdateField
impl Default for PriceUpdateField
Source§fn default() -> PriceUpdateField
fn default() -> PriceUpdateField
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PriceUpdateField
impl<'de> Deserialize<'de> for PriceUpdateField
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 PriceUpdateField
impl RefUnwindSafe for PriceUpdateField
impl Send for PriceUpdateField
impl Sync for PriceUpdateField
impl Unpin for PriceUpdateField
impl UnsafeUnpin for PriceUpdateField
impl UnwindSafe for PriceUpdateField
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