Struct ModFile

Source
pub struct ModFile {
Show 16 fields pub copy_name: Option<String>, pub extra_files: Vec<String>, pub file_date: String, pub file_size: u64, pub full_path: String, pub i3d_files: Vec<String>, pub image_dds: Vec<String>, pub image_non_dds: Vec<String>, pub is_folder: bool, pub is_save_game: bool, pub is_mod_pack: bool, pub png_texture: Vec<String>, pub short_name: String, pub space_files: Vec<String>, pub too_big_files: Vec<String>, pub zip_files: Vec<ZipPackFile>,
}
Expand description

File related metadata for a mod

Fields§

§copy_name: Option<String>

suggested name if this appears to be a copy of a mod

§extra_files: Vec<String>

list of extra files in mod

§file_date: String

mod file date

§file_size: u64

mod size (packed zip or folder contents)

§full_path: String

full path to file

§i3d_files: Vec<String>

list of I3D files

§image_dds: Vec<String>

list of DDS files

§image_non_dds: Vec<String>

list of non DDS images

§is_folder: bool

folder flag (is this a folder?)

§is_save_game: bool

save game flag (is this a save game?)

§is_mod_pack: bool

mod pack flag (is this a pack of mods?)

§png_texture: Vec<String>

list of PNG textures (false positives possible)

§short_name: String

short name of mod (the bit before the .zip extension, or the folder name)

§space_files: Vec<String>

list of files with spaces in them

§too_big_files: Vec<String>

list of oversized files

§zip_files: Vec<ZipPackFile>

list of zip files

Trait Implementations§

Source§

impl Serialize for ModFile

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.