pub struct Rom {Show 24 fields
pub id: u64,
pub platform_id: u64,
pub platform_slug: Option<String>,
pub platform_fs_slug: Option<String>,
pub platform_custom_name: Option<String>,
pub platform_display_name: Option<String>,
pub fs_name: String,
pub fs_name_no_tags: String,
pub fs_name_no_ext: String,
pub fs_extension: String,
pub fs_path: String,
pub fs_size_bytes: u64,
pub name: String,
pub slug: Option<String>,
pub summary: Option<String>,
pub path_cover_small: Option<String>,
pub path_cover_large: Option<String>,
pub url_cover: Option<String>,
pub has_manual: bool,
pub path_manual: Option<String>,
pub url_manual: Option<String>,
pub is_unidentified: bool,
pub is_identified: bool,
pub files: Vec<RomFile>,
}Expand description
Represents a single ROM file and its associated metadata.
Fields§
§id: u64Unique identifier for the ROM.
platform_id: u64ID of the parent platform.
platform_slug: Option<String>Slug of the parent platform.
platform_fs_slug: Option<String>Filesystem slug of the parent platform.
platform_custom_name: Option<String>Custom name of the parent platform.
platform_display_name: Option<String>Display name of the parent platform.
fs_name: StringName of the ROM file on disk.
ROM file name without RomM tags.
fs_name_no_ext: StringROM file name without extension.
fs_extension: StringFile extension of the ROM (e.g., “.nes”).
fs_path: StringRelative path to the ROM file.
fs_size_bytes: u64Size of the ROM file in bytes.
name: StringCanonical name of the game.
slug: Option<String>URL-friendly slug for the game.
summary: Option<String>Brief description or summary of the game.
path_cover_small: Option<String>Path to a small thumbnail cover image.
path_cover_large: Option<String>Path to a large cover image.
url_cover: Option<String>Original URL of the cover image.
has_manual: boolTrue if the ROM has an associated manual.
path_manual: Option<String>Path to the manual file.
url_manual: Option<String>Original URL of the manual file.
is_unidentified: boolTrue if the ROM is not yet fully identified.
is_identified: boolTrue if the ROM has been identified and linked to metadata.
files: Vec<RomFile>Internal files for multi-part ROMs (Switch, PS3, etc.); empty for legacy single-file ROMs.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Rom
impl<'de> Deserialize<'de> for Rom
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>,
Auto Trait Implementations§
impl Freeze for Rom
impl RefUnwindSafe for Rom
impl Send for Rom
impl Sync for Rom
impl Unpin for Rom
impl UnsafeUnpin for Rom
impl UnwindSafe for Rom
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more