Struct cargo::util::toml::InheritableFields
source · pub struct InheritableFields { /* private fields */ }
Expand description
A group of fields that are inheritable by members of the workspace
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§
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