pub struct Firmware {Show 15 fields
pub id: u64,
pub file_name: String,
pub file_name_no_tags: String,
pub file_name_no_ext: String,
pub file_extension: String,
pub file_path: String,
pub file_size_bytes: u64,
pub full_path: String,
pub is_verified: bool,
pub crc_hash: String,
pub md5_hash: String,
pub sha1_hash: String,
pub missing_from_fs: bool,
pub created_at: String,
pub updated_at: String,
}Expand description
Represents a firmware file associated with a platform.
Fields§
§id: u64Unique identifier for the firmware.
file_name: StringOriginal file name of the firmware.
File name without RomM tags.
file_name_no_ext: StringFile name without extension.
file_extension: StringFile extension (e.g., “.bin”).
file_path: StringRelative file path within the RomM storage.
file_size_bytes: u64File size in bytes.
full_path: StringFull absolute path to the file.
is_verified: boolWhether the firmware hash has been verified against a database.
crc_hash: StringCRC32 hash of the file.
md5_hash: StringMD5 hash of the file.
sha1_hash: StringSHA1 hash of the file.
missing_from_fs: boolTrue if the file is missing from the filesystem.
created_at: StringISO 8601 creation timestamp.
updated_at: StringISO 8601 update timestamp.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Firmware
impl<'de> Deserialize<'de> for Firmware
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 Firmware
impl RefUnwindSafe for Firmware
impl Send for Firmware
impl Sync for Firmware
impl Unpin for Firmware
impl UnsafeUnpin for Firmware
impl UnwindSafe for Firmware
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
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>
Converts
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>
Converts
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