pub struct ExtendedData {
pub name: Option<String>,
pub manufacturer: Option<String>,
pub players: Option<String>,
pub is_parent: Option<bool>,
pub year: Option<String>,
}
Expand description
Represents additional normalized data for a MAME machine.
This structure is used to store normalized or additional data that is not present in the original MAME files but is useful for further processing or display.
Fields§
§name: Option<String>
Normalized name of the machine (optional).
manufacturer: Option<String>
Normalized manufacturer of the machine (optional).
players: Option<String>
Normalized number of players (optional).
is_parent: Option<bool>
Indicates if the machine is a parent (optional).
year: Option<String>
Normalized release year (optional).
Implementations§
Source§impl ExtendedData
impl ExtendedData
Sourcepub fn combine(&mut self, other: &ExtendedData)
pub fn combine(&mut self, other: &ExtendedData)
Combines the metadata of this extended data with another extended data.
Trait Implementations§
Source§impl Clone for ExtendedData
impl Clone for ExtendedData
Source§fn clone(&self) -> ExtendedData
fn clone(&self) -> ExtendedData
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 ExtendedData
impl Debug for ExtendedData
Source§impl Default for ExtendedData
impl Default for ExtendedData
Source§fn default() -> ExtendedData
fn default() -> ExtendedData
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ExtendedData
impl<'de> Deserialize<'de> for ExtendedData
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 ExtendedData
impl RefUnwindSafe for ExtendedData
impl Send for ExtendedData
impl Sync for ExtendedData
impl Unpin for ExtendedData
impl UnwindSafe for ExtendedData
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