pub struct FetchArgs {
pub replace: bool,
pub mode: Option<CacheMode>,
pub diff: Vec<String>,
pub urls: Vec<String>,
pub dry_run: bool,
}Expand description
Describes the arguments for the fetch subcommand.
Fields§
§replace: boolFetch and replace bookmarks.
If the flag is set, existing bookmarks will be fetched, and the cached content will be replaced with the fetched content.
mode: Option<CacheMode>Cache the fetched bookmarks as text, HTML or markdown file.
diff: Vec<String>Get the difference between the fetched and cached bookmark for the given urls.
Multiple urls are separated by a whitespace.
urls: Vec<String>Fetch and cache specified URLs.
Multiple URLs are separated by a whitespace. If an URL is missing in the bookmarks, it will be imported.
dry_run: boolRun command in dry mode.
Trait Implementations§
Source§impl Args for FetchArgs
impl Args for FetchArgs
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl FromArgMatches for FetchArgs
impl FromArgMatches for FetchArgs
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(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Auto Trait Implementations§
impl Freeze for FetchArgs
impl RefUnwindSafe for FetchArgs
impl Send for FetchArgs
impl Sync for FetchArgs
impl Unpin for FetchArgs
impl UnwindSafe for FetchArgs
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