pub struct SignCommand {
pub target: String,
pub sig_output: Option<PathBuf>,
pub identity_key_alias: Option<String>,
pub device_key_alias: Option<String>,
pub expires_in_days: Option<i64>,
pub note: Option<String>,
}Expand description
Sign a Git commit or artifact file.
Fields§
§target: StringGit ref, commit range (e.g. HEAD, main..HEAD), or path to an artifact file.
sig_output: Option<PathBuf>Output path for the signature file. Defaults to
identity_key_alias: Option<String>Local alias of the identity key (for artifact signing).
device_key_alias: Option<String>Local alias of the device key (for artifact signing, required for files).
expires_in_days: Option<i64>Number of days until the signature expires (for artifact signing).
note: Option<String>Optional note to embed in the attestation (for artifact signing).
Trait Implementations§
Source§impl Args for SignCommand
impl Args for SignCommand
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 Clone for SignCommand
impl Clone for SignCommand
Source§fn clone(&self) -> SignCommand
fn clone(&self) -> SignCommand
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl CommandFactory for SignCommand
impl CommandFactory for SignCommand
Source§impl Debug for SignCommand
impl Debug for SignCommand
Source§impl ExecutableCommand for SignCommand
impl ExecutableCommand for SignCommand
Source§impl FromArgMatches for SignCommand
impl FromArgMatches for SignCommand
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 SignCommand
impl Parser for SignCommand
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 SignCommand
impl RefUnwindSafe for SignCommand
impl Send for SignCommand
impl Sync for SignCommand
impl Unpin for SignCommand
impl UnsafeUnpin for SignCommand
impl UnwindSafe for SignCommand
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