pub struct VersionFile {
pub hashes: Hash,
pub url: Url,
pub filename: String,
pub primary: bool,
pub size: Int,
pub file_type: Option<AdditionalFileType>,
}Fields§
§hashes: Hash§url: Url§filename: String§primary: boolWhether the file is the primary file of its version
There can only be a maximum of one primary file per version. If there are no primary files specified, the first file can be taken as the primary one.
size: IntThe size of the file in bytes
file_type: Option<AdditionalFileType>The type of the additional file, used mainly for adding resource packs to datapacks
Trait Implementations§
Source§impl Clone for VersionFile
impl Clone for VersionFile
Source§fn clone(&self) -> VersionFile
fn clone(&self) -> VersionFile
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 VersionFile
impl Debug for VersionFile
Source§impl<'de> Deserialize<'de> for VersionFile
impl<'de> Deserialize<'de> for VersionFile
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 VersionFile
impl RefUnwindSafe for VersionFile
impl Send for VersionFile
impl Sync for VersionFile
impl Unpin for VersionFile
impl UnwindSafe for VersionFile
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