pub struct SearchRom {Show 18 fields
pub name: String,
pub slug: Option<String>,
pub summary: Option<String>,
pub platform_id: u64,
pub id: Option<i64>,
pub igdb_id: Option<i64>,
pub moby_id: Option<i64>,
pub ss_id: Option<i64>,
pub launchbox_id: Option<i64>,
pub flashpoint_id: Option<String>,
pub sgdb_id: Option<i64>,
pub libretro_id: Option<String>,
pub is_identified: bool,
pub is_unidentified: bool,
pub igdb_url_cover: Option<String>,
pub ss_url_cover: Option<String>,
pub moby_url_cover: Option<String>,
pub extra: Value,
}Expand description
Row from GET /api/search/roms.
Fields§
§name: String§slug: Option<String>§summary: Option<String>§platform_id: u64§id: Option<i64>Generic provider game id (often mirrors igdb_id for IGDB rows).
igdb_id: Option<i64>§moby_id: Option<i64>§ss_id: Option<i64>§launchbox_id: Option<i64>§flashpoint_id: Option<String>§sgdb_id: Option<i64>§libretro_id: Option<String>§is_identified: bool§is_unidentified: bool§igdb_url_cover: Option<String>§ss_url_cover: Option<String>§moby_url_cover: Option<String>§extra: ValueImplementations§
Source§impl SearchRom
impl SearchRom
Sourcepub fn primary_match_fields(&self) -> RomMatchFields
pub fn primary_match_fields(&self) -> RomMatchFields
Fields to apply when the user picks this search row (non-null IDs only).
Sourcepub fn best_url_cover(&self) -> Option<String>
pub fn best_url_cover(&self) -> Option<String>
Best cover URL from the search row (same priority as RomM web manual match).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for SearchRom
impl<'de> Deserialize<'de> for SearchRom
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
impl StructuralPartialEq for SearchRom
Auto Trait Implementations§
impl Freeze for SearchRom
impl RefUnwindSafe for SearchRom
impl Send for SearchRom
impl Sync for SearchRom
impl Unpin for SearchRom
impl UnsafeUnpin for SearchRom
impl UnwindSafe for SearchRom
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