pub struct Metadata {Show 15 fields
pub name: Option<String>,
pub description: Option<String>,
pub workspace_deps: BTreeMap<String, WorkspaceDep>,
pub features: BTreeMap<String, Vec<String>>,
pub has_binary: bool,
pub binary_name: Option<String>,
pub kind: PackageKind,
pub bins: Vec<BinTarget>,
pub tests: Vec<String>,
pub benches: Vec<String>,
pub examples: Vec<String>,
pub scripts: Vec<Script>,
pub external_deps: Vec<ExternalDep>,
pub version: String,
pub msrv: String,
}Fields§
§name: Option<String>§description: Option<String>§workspace_deps: BTreeMap<String, WorkspaceDep>§features: BTreeMap<String, Vec<String>>§has_binary: bool§binary_name: Option<String>§kind: PackageKind§bins: Vec<BinTarget>§tests: Vec<String>§benches: Vec<String>§examples: Vec<String>§scripts: Vec<Script>§external_deps: Vec<ExternalDep>§version: String§msrv: StringTrait Implementations§
Auto Trait Implementations§
impl Freeze for Metadata
impl RefUnwindSafe for Metadata
impl Send for Metadata
impl Sync for Metadata
impl Unpin for Metadata
impl UnsafeUnpin for Metadata
impl UnwindSafe for Metadata
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more