#[non_exhaustive]pub struct File {Show 13 fields
pub id: FileId,
pub mod_id: ModId,
pub date_added: u64,
pub virus_scan: VirusScan,
pub filesize: u64,
pub filesize_uncompressed: u64,
pub filehash: FileHash,
pub filename: String,
pub version: Option<String>,
pub changelog: Option<String>,
pub metadata_blob: Option<String>,
pub download: Download,
pub platforms: Vec<Platform>,
}
Expand description
See the Modfile Object docs for more information.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.id: FileId
§mod_id: ModId
§date_added: u64
§virus_scan: VirusScan
§filesize: u64
§filesize_uncompressed: u64
§filehash: FileHash
§filename: String
§version: Option<String>
§changelog: Option<String>
§metadata_blob: Option<String>
§download: Download
§platforms: Vec<Platform>
Trait Implementations§
source§impl<'de> Deserialize<'de> for File
impl<'de> Deserialize<'de> for File
source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
source§impl From<File> for DownloadAction
impl From<File> for DownloadAction
Convert File
to DownloadAction::FileObj
source§fn from(file: File) -> DownloadAction
fn from(file: File) -> DownloadAction
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for File
impl RefUnwindSafe for File
impl Send for File
impl Sync for File
impl Unpin for File
impl UnwindSafe for File
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