Struct cargo::core::manifest::ManifestMetadata
source · pub struct ManifestMetadata {Show 13 fields
pub authors: Vec<String>,
pub keywords: Vec<String>,
pub categories: Vec<String>,
pub license: Option<String>,
pub license_file: Option<String>,
pub description: Option<String>,
pub readme: Option<String>,
pub homepage: Option<String>,
pub repository: Option<String>,
pub documentation: Option<String>,
pub badges: BTreeMap<String, BTreeMap<String, String>>,
pub links: Option<String>,
pub rust_version: Option<RustVersion>,
}
Expand description
General metadata about a package which is just blindly uploaded to the registry.
Note that many of these fields can contain invalid values such as the homepage, repository, documentation, or license. These fields are not validated by cargo itself, but rather it is up to the registry when uploaded to validate these fields. Cargo will itself accept any valid TOML specification for these values.
Fields§
§keywords: Vec<String>
§categories: Vec<String>
§license: Option<String>
§license_file: Option<String>
§description: Option<String>
§readme: Option<String>
§homepage: Option<String>
§repository: Option<String>
§documentation: Option<String>
§badges: BTreeMap<String, BTreeMap<String, String>>
§links: Option<String>
§rust_version: Option<RustVersion>
Trait Implementations§
source§impl Clone for ManifestMetadata
impl Clone for ManifestMetadata
source§fn clone(&self) -> ManifestMetadata
fn clone(&self) -> ManifestMetadata
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 ManifestMetadata
impl Debug for ManifestMetadata
source§impl PartialEq<ManifestMetadata> for ManifestMetadata
impl PartialEq<ManifestMetadata> for ManifestMetadata
source§fn eq(&self, other: &ManifestMetadata) -> bool
fn eq(&self, other: &ManifestMetadata) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ManifestMetadata
Auto Trait Implementations§
impl RefUnwindSafe for ManifestMetadata
impl Send for ManifestMetadata
impl Sync for ManifestMetadata
impl Unpin for ManifestMetadata
impl UnwindSafe for ManifestMetadata
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
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
source§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,
source§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 344 bytes