pub struct PayloadArgs {
pub release: Option<String>,
pub offline: bool,
pub json: bool,
}Expand description
Report what a release carries, through the release seam.
Fields§
§release: Option<String>A published version, or the release this binary carries.
latest resolves the highest stable, non-yanked release at the
registry. An exact version is fetched, verified against the index
checksum, and cached.
offline: boolForbid every network read.
An exact version already cached still resolves. latest refuses,
because only the index says which release is newest.
json: boolPrint one JSON object instead of text.
Trait Implementations§
Source§impl Args for PayloadArgs
impl Args for PayloadArgs
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 Debug for PayloadArgs
impl Debug for PayloadArgs
Source§impl FromArgMatches for PayloadArgs
impl FromArgMatches for PayloadArgs
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 PayloadArgs
impl RefUnwindSafe for PayloadArgs
impl Send for PayloadArgs
impl Sync for PayloadArgs
impl Unpin for PayloadArgs
impl UnsafeUnpin for PayloadArgs
impl UnwindSafe for PayloadArgs
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