pub struct Promo {
pub price: f64,
pub until: String,
pub months: Option<u32>,
}Fields§
§price: f64§until: StringYYYY-MM-DD, inclusive.
months: Option<u32>Trait Implementations§
Source§impl<'de> Deserialize<'de> for Promo
impl<'de> Deserialize<'de> for Promo
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 Promo
impl RefUnwindSafe for Promo
impl Send for Promo
impl Sync for Promo
impl Unpin for Promo
impl UnsafeUnpin for Promo
impl UnwindSafe for Promo
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