pub struct ModFile { /* private fields */ }Implementations§
Source§impl ModFile
impl ModFile
pub fn ids(&self) -> &[u64]
pub const fn uid(&self) -> u64
pub const fn file_id(&self) -> u64
pub fn name(&self) -> &str
pub fn version(&self) -> &str
pub const fn category_id(&self) -> u64
pub const fn category_name(&self) -> CategoryName
pub const fn is_primary(&self) -> bool
pub fn file_name(&self) -> &str
pub const fn uploaded_at(&self) -> UtcDateTime
pub fn mod_version(&self) -> &str
pub fn virus_scan_url(&self) -> Option<&Url>
pub fn description(&self) -> Option<&str>
pub const fn size_kb(&self) -> u64
pub const fn size_bytes(&self) -> u64
pub fn changelog(&self) -> Option<&str>
pub fn content_preview(&self) -> &Url
Trait Implementations§
Source§impl<'de> Deserialize<'de> for ModFile
impl<'de> Deserialize<'de> for ModFile
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 ModFile
impl RefUnwindSafe for ModFile
impl Send for ModFile
impl Sync for ModFile
impl Unpin for ModFile
impl UnwindSafe for ModFile
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