pub struct DownloadKey {
pub id: u64,
pub created_at: DateTime<Utc>,
pub downloads: u64,
pub key: String,
pub game_id: u32,
pub owner: Option<User>,
}Expand description
An Object containing all the information regarding a download key, including the key itself.
Fields§
§id: u64§created_at: DateTime<Utc>§downloads: u64§key: String§game_id: u32§owner: Option<User>Is None if the key has not been claimed
Trait Implementations§
Source§impl Clone for DownloadKey
impl Clone for DownloadKey
Source§fn clone(&self) -> DownloadKey
fn clone(&self) -> DownloadKey
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 DownloadKey
impl Debug for DownloadKey
Source§impl<'de> Deserialize<'de> for DownloadKey
impl<'de> Deserialize<'de> for DownloadKey
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 DownloadKey
impl RefUnwindSafe for DownloadKey
impl Send for DownloadKey
impl Sync for DownloadKey
impl Unpin for DownloadKey
impl UnwindSafe for DownloadKey
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