pub struct VexArgs {
pub common: GlobalArgs,
pub output: Option<PathBuf>,
pub product: Option<String>,
pub no_verify: bool,
pub doc_id: Option<String>,
pub compact: bool,
}Fields§
§common: GlobalArgs§output: Option<PathBuf>Write the VEX document to this path instead of stdout.
product: Option<String>Override the auto-detected top-level product PURL/identifier. Auto-detection probes (in order):
.git/config[remote "origin"]— converted topkg:github/<owner>/<repo>for github.com, similar for gitlab.com/bitbucket.org, raw URL otherwise.package.json→pkg:npm/<name>@<version>pyproject.toml→pkg:pypi/<name>@<version>Cargo.toml→pkg:cargo/<name>@<version>
no_verify: boolSkip the on-disk file-hash check and trust the manifest. By default every manifest entry is verified before being emitted; this flag flips that off — useful when generating a VEX doc on a build machine that doesn’t have the patched files laid out yet.
doc_id: Option<String>Override the document @id. Default is urn:uuid:<random v4>,
regenerated on every invocation. Pin this to get a reproducible
doc identifier across runs.
compact: boolEmit compact JSON instead of pretty-printed.
Trait Implementations§
Source§impl Args for VexArgs
impl Args for VexArgs
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 FromArgMatches for VexArgs
impl FromArgMatches for VexArgs
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 VexArgs
impl RefUnwindSafe for VexArgs
impl Send for VexArgs
impl Sync for VexArgs
impl Unpin for VexArgs
impl UnsafeUnpin for VexArgs
impl UnwindSafe for VexArgs
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more