Struct cargo::util::toml::InheritableFields
source · pub struct InheritableFields {Show 19 fields
dependencies: Option<BTreeMap<String, TomlDependency>>,
version: Option<Version>,
authors: Option<Vec<String>>,
description: Option<String>,
homepage: Option<String>,
documentation: Option<String>,
readme: Option<StringOrBool>,
keywords: Option<Vec<String>>,
categories: Option<Vec<String>>,
license: Option<String>,
license_file: Option<String>,
repository: Option<String>,
publish: Option<VecStringOrBool>,
edition: Option<String>,
badges: Option<BTreeMap<String, BTreeMap<String, String>>>,
exclude: Option<Vec<String>>,
include: Option<Vec<String>>,
rust_version: Option<String>,
ws_root: PathBuf,
}
Expand description
A group of fields that are inheritable by members of the workspace
Fields§
§dependencies: Option<BTreeMap<String, TomlDependency>>
§version: Option<Version>
§description: Option<String>
§homepage: Option<String>
§documentation: Option<String>
§readme: Option<StringOrBool>
§keywords: Option<Vec<String>>
§categories: Option<Vec<String>>
§license: Option<String>
§license_file: Option<String>
§repository: Option<String>
§publish: Option<VecStringOrBool>
§edition: Option<String>
§badges: Option<BTreeMap<String, BTreeMap<String, String>>>
§exclude: Option<Vec<String>>
§include: Option<Vec<String>>
§rust_version: Option<String>
§ws_root: PathBuf
Implementations§
source§impl InheritableFields
impl InheritableFields
pub fn update_deps(&mut self, deps: Option<BTreeMap<String, TomlDependency>>)
pub fn update_ws_path(&mut self, ws_root: PathBuf)
pub fn dependencies(&self) -> CargoResult<BTreeMap<String, TomlDependency>>
pub fn get_dependency( &self, name: &str, package_root: &Path ) -> CargoResult<TomlDependency>
pub fn version(&self) -> CargoResult<Version>
pub fn description(&self) -> CargoResult<String>
pub fn homepage(&self) -> CargoResult<String>
pub fn documentation(&self) -> CargoResult<String>
pub fn readme(&self, package_root: &Path) -> CargoResult<StringOrBool>
pub fn keywords(&self) -> CargoResult<Vec<String>>
pub fn categories(&self) -> CargoResult<Vec<String>>
pub fn license(&self) -> CargoResult<String>
pub fn license_file(&self, package_root: &Path) -> CargoResult<String>
pub fn repository(&self) -> CargoResult<String>
pub fn publish(&self) -> CargoResult<VecStringOrBool>
pub fn edition(&self) -> CargoResult<String>
pub fn rust_version(&self) -> CargoResult<String>
pub fn badges(&self) -> CargoResult<BTreeMap<String, BTreeMap<String, String>>>
pub fn exclude(&self) -> CargoResult<Vec<String>>
pub fn include(&self) -> CargoResult<Vec<String>>
pub fn ws_root(&self) -> &PathBuf
Trait Implementations§
source§impl Clone for InheritableFields
impl Clone for InheritableFields
source§fn clone(&self) -> InheritableFields
fn clone(&self) -> InheritableFields
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 InheritableFields
impl Debug for InheritableFields
source§impl Default for InheritableFields
impl Default for InheritableFields
source§fn default() -> InheritableFields
fn default() -> InheritableFields
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for InheritableFields
impl<'de> Deserialize<'de> for InheritableFields
source§fn 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
Auto Trait Implementations§
impl RefUnwindSafe for InheritableFields
impl Send for InheritableFields
impl Sync for InheritableFields
impl Unpin for InheritableFields
impl UnwindSafe for InheritableFields
Blanket Implementations§
impl<T> DeserializeOwned for Twhere T: for<'de> Deserialize<'de>,
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: 504 bytes