pub struct V1CreateArgs {
pub builddate: BuildDate,
pub builddir: BuildDirectory,
pub buildenv: Vec<BuildEnvironmentOption>,
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: FullVersion,
pub output: OutputFile,
}Expand description
Arguments for creating a BUILDINFO file according to the format version 1 schema
This struct is defined separately for reusing it for both v1 and v2 since they have an overlapping set of fields.
Fields§
§builddate: BuildDateProvide a builddate
builddir: BuildDirectoryProvide a builddir
buildenv: Vec<BuildEnvironmentOption>Provide one or more buildenv
installed: Vec<InstalledPackage>Provide one or more installed
options: Vec<PackageOption>Provide one or more options
packager: PackagerProvide a packager
pkgarch: ArchitectureProvide a pkgarch
pkgbase: NameProvide a pkgbase
pkgbuild_sha256sum: StringProvide a pkgbuild_sha256sum
pkgname: NameProvide a pkgname
pkgver: FullVersionProvide a pkgver
output: OutputFileProvide 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 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 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