pub struct Args {Show 17 fields
pub help: bool,
pub version: bool,
pub all: bool,
pub color: TriBool,
pub ascii: bool,
pub remote_stats: TriBool,
pub list_cols: bool,
pub cols: Cols,
pub filter: Option<Filter>,
pub sort: Sorting,
pub units: Units,
pub json: bool,
pub csv: bool,
pub csv_separator: char,
pub strategy: Option<String>,
pub timeout: Option<Timeout>,
pub path: Option<PathBuf>,
}Expand description
List your filesystems.
Documentation at https://dystroy.org/dysk
Fields§
§help: boolprint help information
version: boolprint the version
all: boolshow all mount points
color: TriBoolwhether to have styles and colors
ascii: booluse only ASCII characters for table rendering
remote_stats: TriBoolfetch stats of remote volumes
list_cols: boollist the column names which can be used in -s, -f, or -c
cols: Colscolumns, eg -c +inodes or -c id+dev+default
filter: Option<Filter>filter, eg -f '(size<35G | remote=false) & type=xfs'
sort: Sortingsort, eg inodes, type-desc, or size-asc
units: Unitsunits: SI (SI norm), binary (1024 based), or bytes (raw number)
json: booloutput as JSON
csv: booloutput as CSV
csv_separator: charCSV separator
strategy: Option<String>strategy to use to find information, when several are available
timeout: Option<Timeout>timeout to use for some operations, eg 10s or 5ms
path: Option<PathBuf>if provided, only the device holding this path will be shown
Implementations§
Trait Implementations§
Source§impl Args for Args
impl Args for Args
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 CommandFactory for Args
impl CommandFactory for Args
Source§impl FromArgMatches for Args
impl FromArgMatches for Args
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.Source§impl Parser for Args
impl Parser for Args
Source§fn parse_from<I, T>(itr: I) -> Self
fn parse_from<I, T>(itr: I) -> Self
Parse from iterator, exit on error.
Source§fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
fn try_parse_from<I, T>(itr: I) -> Result<Self, Error>
Parse from iterator, return Err on error.
Source§fn update_from<I, T>(&mut self, itr: I)
fn update_from<I, T>(&mut self, itr: I)
Auto Trait Implementations§
impl Freeze for Args
impl RefUnwindSafe for Args
impl Send for Args
impl Sync for Args
impl Unpin for Args
impl UnwindSafe for Args
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