pub struct Upload {
pub position: u64,
pub id: UploadID,
pub game_id: GameID,
pub type: UploadType,
pub traits: Vec<UploadTrait>,
pub filename: String,
pub display_name: Option<String>,
pub storage: UploadStorage,
pub created_at: OffsetDateTime,
pub updated_at: OffsetDateTime,
}Fields§
§position: u64§id: UploadID§game_id: GameID§type: UploadType§traits: Vec<UploadTrait>§filename: String§display_name: Option<String>§storage: UploadStorage§created_at: OffsetDateTime§updated_at: OffsetDateTimeImplementations§
Source§impl Upload
impl Upload
pub fn to_game_platforms(&self) -> Vec<GamePlatform>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Upload
impl<'de> Deserialize<'de> for Upload
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
impl StructuralPartialEq for Upload
Auto Trait Implementations§
impl Freeze for Upload
impl RefUnwindSafe for Upload
impl Send for Upload
impl Sync for Upload
impl Unpin for Upload
impl UnwindSafe for Upload
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