Struct build_info_common::CrateInfo
source · [−]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>,
}
Expand description
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
.
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
sourceimpl<'de> Deserialize<'de> for CrateInfo
impl<'de> Deserialize<'de> for CrateInfo
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl Ord for CrateInfo
impl Ord for CrateInfo
sourceimpl PartialOrd<CrateInfo> for CrateInfo
impl PartialOrd<CrateInfo> for CrateInfo
sourcefn partial_cmp(&self, other: &CrateInfo) -> Option<Ordering>
fn partial_cmp(&self, other: &CrateInfo) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Eq for CrateInfo
impl StructuralEq for CrateInfo
impl StructuralPartialEq for CrateInfo
Auto Trait Implementations
impl RefUnwindSafe for CrateInfo
impl Send for CrateInfo
impl Sync for CrateInfo
impl Unpin for CrateInfo
impl UnwindSafe for CrateInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more