Struct cargo::core::InheritableFields
source · [−]pub struct InheritableFields { /* private fields */ }
Expand description
A group of fields that are inheritable by members of the workspace
Implementations
sourceimpl InheritableFields
impl InheritableFields
pub fn new(
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>>>
) -> InheritableFields
pub fn dependencies(&self) -> CargoResult<BTreeMap<String, TomlDependency>>
pub fn get_dependency(&self, name: &str) -> 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) -> 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) -> CargoResult<String>
pub fn repository(&self) -> CargoResult<String>
pub fn publish(&self) -> CargoResult<VecStringOrBool>
pub fn edition(&self) -> CargoResult<String>
pub fn badges(&self) -> CargoResult<BTreeMap<String, BTreeMap<String, String>>>
Trait Implementations
sourceimpl Clone for InheritableFields
impl Clone for InheritableFields
sourcefn clone(&self) -> InheritableFields
fn clone(&self) -> InheritableFields
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for InheritableFields
impl Debug for InheritableFields
sourceimpl Default for InheritableFields
impl Default for InheritableFields
sourcefn default() -> InheritableFields
fn default() -> InheritableFields
Returns the “default value” for a type. 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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more