Struct commonwasm::model::payment_discount::PaymentDiscount
pub struct PaymentDiscount {
pub id: Uuid,
pub title: String,
pub discount_type: String,
pub discount_amount: Option<f64>,
pub discount_percent: Option<f64>,
}
Fields§
§id: Uuid
§title: String
§discount_type: String
§discount_amount: Option<f64>
§discount_percent: Option<f64>
Trait Implementations§
§impl Clone for PaymentDiscount
impl Clone for PaymentDiscount
§fn clone(&self) -> PaymentDiscount
fn clone(&self) -> PaymentDiscount
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 more§impl Debug for PaymentDiscount
impl Debug for PaymentDiscount
§impl Default for PaymentDiscount
impl Default for PaymentDiscount
§fn default() -> PaymentDiscount
fn default() -> PaymentDiscount
Returns the “default value” for a type. Read more
§impl<'de> Deserialize<'de> for PaymentDiscount
impl<'de> Deserialize<'de> for PaymentDiscount
§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
§impl Serialize for PaymentDiscount
impl Serialize for PaymentDiscount
Auto Trait Implementations§
impl Freeze for PaymentDiscount
impl RefUnwindSafe for PaymentDiscount
impl Send for PaymentDiscount
impl Sync for PaymentDiscount
impl Unpin for PaymentDiscount
impl UnwindSafe for PaymentDiscount
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)