pub struct GiftAuction {
pub id: String,
pub gifts_per_round: i32,
pub start_date: i32,
}Expand description
Describes an auction on which a gift can be purchased
Fields§
§id: StringIdentifier of the auction
gifts_per_round: i32Number of gifts distributed in each round
start_date: i32Point in time (Unix timestamp) when the auction will start
Trait Implementations§
Source§impl Clone for GiftAuction
impl Clone for GiftAuction
Source§fn clone(&self) -> GiftAuction
fn clone(&self) -> GiftAuction
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 GiftAuction
impl Debug for GiftAuction
Source§impl Default for GiftAuction
impl Default for GiftAuction
Source§fn default() -> GiftAuction
fn default() -> GiftAuction
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GiftAuction
impl<'de> Deserialize<'de> for GiftAuction
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 PartialEq for GiftAuction
impl PartialEq for GiftAuction
Source§impl Serialize for GiftAuction
impl Serialize for GiftAuction
impl StructuralPartialEq for GiftAuction
Auto Trait Implementations§
impl Freeze for GiftAuction
impl RefUnwindSafe for GiftAuction
impl Send for GiftAuction
impl Sync for GiftAuction
impl Unpin for GiftAuction
impl UnsafeUnpin for GiftAuction
impl UnwindSafe for GiftAuction
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