[][src]Struct build_info::CrateInfo

pub struct CrateInfo {
    pub name: String,
    pub version: Version,
    pub authors: Vec<String>,
    pub license: Option<String>,
    pub enabled_features: Vec<String>,
    pub available_features: Vec<String>,
    pub dependencies: Vec<CrateInfo>,
}

Information about the current crate (i.e., the crate for which build information has been generated)

Fields

name: String

The name, as defined in Cargo.toml.

version: Version

The version, as defined in Cargo.toml.

authors: Vec<String>

The authors, as defined in Cargo.toml.

license: Option<String>

The license string, as defined in Cargo.toml.

enabled_features: Vec<String>

The features of this crate that are currently enabled in this configuration.

available_features: Vec<String>

All features that are available from this crate.

dependencies: Vec<CrateInfo>

Dependencies of this crate. Will only be filled with data if build-info-build has the dependencies feature enabled.

Trait Implementations

impl Clone for CrateInfo[src]

impl Debug for CrateInfo[src]

impl<'de> Deserialize<'de> for CrateInfo[src]

impl Display for CrateInfo[src]

impl Eq for CrateInfo[src]

impl Hash for CrateInfo[src]

impl Ord for CrateInfo[src]

impl PartialEq<CrateInfo> for CrateInfo[src]

impl PartialOrd<CrateInfo> for CrateInfo[src]

impl Serialize for CrateInfo[src]

impl StructuralEq for CrateInfo[src]

impl StructuralPartialEq for CrateInfo[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.