Struct mmrbi::cargo::toml::Package

source ·
pub struct Package<Metadata = Table> {
Show 25 fields pub name: Name, pub version: Version, pub authors: Vec<String>, pub edition: Edition, pub description: Option<String>, pub documentation: Option<Url>, pub readme: Option<PathBuf>, pub homepage: Option<Url>, pub repository: Option<Url>, pub license: Option<License>, pub license_file: Option<PathBuf>, pub keywords: Vec<String>, pub categories: Vec<Category>, pub workspace: Option<PathBuf>, pub build: Option<PathBuf>, pub links: Option<String>, pub exclude: Vec<Pattern>, pub include: Vec<Pattern>, pub publish: Publish, pub metadata: Metadata, pub default_run: Option<String>, pub autobins: Option<bool>, pub autoexamples: Option<bool>, pub autotests: Option<bool>, pub autobenches: Option<bool>, /* private fields */
}
Available on crate features serde and toml only.
Expand description

[package] — Defines a package.

Fields§

§name: Name§version: Version§authors: Vec<String>§edition: Edition§description: Option<String>§documentation: Option<Url>§readme: Option<PathBuf>§homepage: Option<Url>§repository: Option<Url>§license: Option<License>§license_file: Option<PathBuf>§keywords: Vec<String>§categories: Vec<Category>§workspace: Option<PathBuf>§build: Option<PathBuf>§links: Option<String>§exclude: Vec<Pattern>§include: Vec<Pattern>§publish: Publish§metadata: Metadata§default_run: Option<String>§autobins: Option<bool>§autoexamples: Option<bool>§autotests: Option<bool>§autobenches: Option<bool>

Trait Implementations§

source§

impl<Metadata: Clone> Clone for Package<Metadata>

source§

fn clone(&self) -> Package<Metadata>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<Metadata: Debug> Debug for Package<Metadata>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'de, Metadata> Deserialize<'de> for Package<Metadata>where Metadata: Deserialize<'de> + Default,

source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
source§

impl<Metadata> Serialize for Package<Metadata>where Metadata: Serialize,

source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

§

impl<Metadata> RefUnwindSafe for Package<Metadata>where Metadata: RefUnwindSafe,

§

impl<Metadata> Send for Package<Metadata>where Metadata: Send,

§

impl<Metadata> Sync for Package<Metadata>where Metadata: Sync,

§

impl<Metadata> Unpin for Package<Metadata>where Metadata: Unpin,

§

impl<Metadata> UnwindSafe for Package<Metadata>where Metadata: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> DeserializeOwned for Twhere T: for<'de> Deserialize<'de>,