Struct cli::types::PackageInfo
source · pub struct PackageInfo {
pub name: Option<String>,
pub version: Option<String>,
pub description: Option<String>,
pub license: Option<String>,
pub documentation: Option<String>,
pub homepage: Option<String>,
pub repository: Option<String>,
}
Expand description
Holds crate package information loaded from the Cargo.toml file package section.
Fields§
§name: Option<String>
name
version: Option<String>
version
description: Option<String>
description
license: Option<String>
license
documentation: Option<String>
documentation link
homepage: Option<String>
homepage link
repository: Option<String>
repository link
Implementations§
source§impl PackageInfo
impl PackageInfo
sourcepub fn new() -> PackageInfo
pub fn new() -> PackageInfo
Creates and returns a new instance.
Trait Implementations§
source§impl Clone for PackageInfo
impl Clone for PackageInfo
source§fn clone(&self) -> PackageInfo
fn clone(&self) -> PackageInfo
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 PackageInfo
impl Debug for PackageInfo
source§impl Default for PackageInfo
impl Default for PackageInfo
source§fn default() -> PackageInfo
fn default() -> PackageInfo
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for PackageInfo
impl Send for PackageInfo
impl Sync for PackageInfo
impl Unpin for PackageInfo
impl UnwindSafe for PackageInfo
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