pub struct V1CreateArgs {
pub builddate: BuildDate,
pub builddir: BuildDir,
pub buildenv: Vec<BuildEnv>,
pub installed: Vec<InstalledPackage>,
pub options: Vec<PackageOption>,
pub packager: Packager,
pub pkgarch: Architecture,
pub pkgbase: Name,
pub pkgbuild_sha256sum: String,
pub pkgname: Name,
pub pkgver: Version,
pub output: OutputFile,
}
Expand description
Arguments for creating a BUILDINFO file according to the format version 1 schema
This struct is defined separately for re-using it for both v1 and v2 since they have an overlapping set of fields.
Fields§
§builddate: BuildDate
Provide a builddate
builddir: BuildDir
Provide a builddir
buildenv: Vec<BuildEnv>
Provide one or more buildenv
installed: Vec<InstalledPackage>
Provide one or more installed
options: Vec<PackageOption>
Provide one or more options
packager: Packager
Provide a packager
pkgarch: Architecture
Provide a pkgarch
pkgbase: Name
Provide a pkgbase
pkgbuild_sha256sum: String
Provide a pkgbuild_sha256sum
pkgname: Name
Provide a pkgname
pkgver: Version
Provide a pkgver
output: OutputFile
Provide a file to write to
Trait Implementations§
source§impl Args for V1CreateArgs
impl Args for V1CreateArgs
source§fn group_id() -> Option<Id>
fn group_id() -> Option<Id>
Report the [
ArgGroup::id
][crate::ArgGroup::id] for this set of argumentssource§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 V1CreateArgs
impl Clone for V1CreateArgs
source§fn clone(&self) -> V1CreateArgs
fn clone(&self) -> V1CreateArgs
Returns a copy 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 Debug for V1CreateArgs
impl Debug for V1CreateArgs
source§impl FromArgMatches for V1CreateArgs
impl FromArgMatches for V1CreateArgs
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 V1CreateArgs
impl RefUnwindSafe for V1CreateArgs
impl Send for V1CreateArgs
impl Sync for V1CreateArgs
impl Unpin for V1CreateArgs
impl UnwindSafe for V1CreateArgs
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)