pub struct CrateSpec {
pub version: String,
pub features: BTreeSet<String>,
pub dep_kind: DepKind,
pub optional: bool,
}Expand description
A curated crate within a battery pack.
Fields§
§version: StringRecommended version.
features: BTreeSet<String>Recommended Cargo features.
dep_kind: DepKindWhich dependency section this crate comes from.
optional: boolWhether this crate is marked optional = true.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CrateSpec
impl RefUnwindSafe for CrateSpec
impl Send for CrateSpec
impl Sync for CrateSpec
impl Unpin for CrateSpec
impl UnsafeUnpin for CrateSpec
impl UnwindSafe for CrateSpec
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