pub struct PublishCommand {
pub file: Option<PathBuf>,
pub signature: Option<PathBuf>,
pub package: Option<String>,
pub registry: String,
}Expand description
Top-level auths publish command: sign and publish a signed artifact attestation.
Fields§
§file: Option<PathBuf>Artifact file to sign and publish. Omit if providing –signature directly.
signature: Option<PathBuf>Path to an existing .auths.json signature file. Defaults to
package: Option<String>Package identifier for registry indexing (e.g., npm:react@18.3.0).
registry: StringRegistry URL to publish to.
Trait Implementations§
Source§impl Args for PublishCommand
impl Args for PublishCommand
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 PublishCommand
impl Debug for PublishCommand
Source§impl ExecutableCommand for PublishCommand
impl ExecutableCommand for PublishCommand
Source§impl FromArgMatches for PublishCommand
impl FromArgMatches for PublishCommand
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 PublishCommand
impl RefUnwindSafe for PublishCommand
impl Send for PublishCommand
impl Sync for PublishCommand
impl Unpin for PublishCommand
impl UnsafeUnpin for PublishCommand
impl UnwindSafe for PublishCommand
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