pub struct Parcel { /* private fields */ }Expand description
A description of a parcel’s metadata.
Implementations§
Source§impl Parcel
impl Parcel
Sourcepub fn build<T: Into<String>, U: Into<String>>(
pkg_name: T,
version: U,
) -> ParcelBuilder
pub fn build<T: Into<String>, U: Into<String>>( pkg_name: T, version: U, ) -> ParcelBuilder
Create an empty parcel.
The given name and version strings will be used to determine installation paths for resources.
Sourcepub fn pkg_version(&self) -> &str
pub fn pkg_version(&self) -> &str
Returns the package version string.
Sourcepub fn cargo_binaries(&self) -> impl Iterator<Item = &Path>
pub fn cargo_binaries(&self) -> impl Iterator<Item = &Path>
Returns the cargo binaries to be installed.
Sourcepub fn man_pages(&self) -> impl Iterator<Item = &ManSource>
pub fn man_pages(&self) -> impl Iterator<Item = &ManSource>
Returns the man pages to be installed.
Sourcepub fn action_from_env(&self) -> Result<Action, Error>
pub fn action_from_env(&self) -> Result<Action, Error>
Constructs an action from the command line arguments.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Parcel
impl RefUnwindSafe for Parcel
impl Send for Parcel
impl Sync for Parcel
impl Unpin for Parcel
impl UnwindSafe for Parcel
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