pub enum MetadataAction {
Search {
rom_id: u64,
query: Option<String>,
search_by: String,
},
Match {Show 15 fields
rom_id: u64,
query: Option<String>,
search_by: String,
pick: bool,
igdb_id: Option<i64>,
moby_id: Option<i64>,
ss_id: Option<i64>,
launchbox_id: Option<i64>,
flashpoint_id: Option<String>,
sgdb_id: Option<i64>,
ra_id: Option<i64>,
hasheous_id: Option<i64>,
tgdb_id: Option<i64>,
hltb_id: Option<i64>,
cover_query: Option<String>,
},
Edit {
rom_id: u64,
name: Option<String>,
summary: Option<String>,
url_cover: Option<String>,
artwork: Option<PathBuf>,
},
Unmatch {
rom_id: u64,
yes: bool,
},
RemoveCover {
rom_id: u64,
yes: bool,
},
}Variants§
Search
Search metadata providers for match candidates
Match
Apply a metadata provider match (PUT /api/roms/{id})
Fields
Edit
Edit name, summary, or cover URL / artwork file
Fields
Unmatch
Clear provider metadata links (?unmatch_metadata=true)
RemoveCover
Remove stored cover image (?remove_cover=true)
Trait Implementations§
Source§impl Debug for MetadataAction
impl Debug for MetadataAction
Source§impl FromArgMatches for MetadataAction
impl FromArgMatches for MetadataAction
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut<'b>(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut<'b>( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§impl Subcommand for MetadataAction
impl Subcommand for MetadataAction
Source§fn augment_subcommands<'b>(__clap_app: Command) -> Command
fn augment_subcommands<'b>(__clap_app: Command) -> Command
Source§fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
fn augment_subcommands_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§fn has_subcommand(__clap_name: &str) -> bool
fn has_subcommand(__clap_name: &str) -> bool
Test whether
Self can parse a specific subcommandAuto Trait Implementations§
impl Freeze for MetadataAction
impl RefUnwindSafe for MetadataAction
impl Send for MetadataAction
impl Sync for MetadataAction
impl Unpin for MetadataAction
impl UnsafeUnpin for MetadataAction
impl UnwindSafe for MetadataAction
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> 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