Struct mdcat::args::CommonArgs
source · pub struct CommonArgs {
pub filenames: Vec<String>,
pub no_colour: bool,
pub columns: Option<u16>,
pub local_only: bool,
pub fail_fast: bool,
pub detect_and_exit: bool,
pub ansi_only: bool,
}
Fields§
§filenames: Vec<String>
Files to read. If - read from standard input instead.
no_colour: bool
Disable all colours and other styles.
columns: Option<u16>
Maximum number of columns to use for output.
local_only: bool
Do not load remote resources like images.
fail_fast: bool
Exit immediately if any error occurs processing an input file.
detect_and_exit: bool
Print detected terminal name and exit.
ansi_only: bool
Skip terminal detection and only use ANSI formatting.
Implementations§
source§impl CommonArgs
impl CommonArgs
sourcepub fn resource_access(&self) -> ResourceAccess
pub fn resource_access(&self) -> ResourceAccess
Whether remote resource access is permitted.
Trait Implementations§
source§impl Args for CommonArgs
impl Args for CommonArgs
source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
source§impl Debug for CommonArgs
impl Debug for CommonArgs
source§impl FromArgMatches for CommonArgs
impl FromArgMatches for CommonArgs
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 RefUnwindSafe for CommonArgs
impl Send for CommonArgs
impl Sync for CommonArgs
impl Unpin for CommonArgs
impl UnwindSafe for CommonArgs
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