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
sourcepub fn dependencies(&self) -> CargoResult<BTreeMap<String, TomlDependency>>
pub fn dependencies(&self) -> CargoResult<BTreeMap<String, TomlDependency>>
Gets the field workspace.dependencies
.
sourcepub fn lints(&self) -> CargoResult<TomlLints>
pub fn lints(&self) -> CargoResult<TomlLints>
Gets the field workspace.lints
.
Gets the field workspace.package.authors
.
sourcepub fn badges(&self) -> CargoResult<BTreeMap<String, BTreeMap<String, String>>>
pub fn badges(&self) -> CargoResult<BTreeMap<String, BTreeMap<String, String>>>
Gets the field workspace.package.badges
.
sourcepub fn categories(&self) -> CargoResult<Vec<String>>
pub fn categories(&self) -> CargoResult<Vec<String>>
Gets the field workspace.package.categories
.
sourcepub fn description(&self) -> CargoResult<String>
pub fn description(&self) -> CargoResult<String>
Gets the field workspace.package.description
.
sourcepub fn documentation(&self) -> CargoResult<String>
pub fn documentation(&self) -> CargoResult<String>
Gets the field workspace.package.documentation
.
sourcepub fn edition(&self) -> CargoResult<String>
pub fn edition(&self) -> CargoResult<String>
Gets the field workspace.package.edition
.
sourcepub fn exclude(&self) -> CargoResult<Vec<String>>
pub fn exclude(&self) -> CargoResult<Vec<String>>
Gets the field workspace.package.exclude
.
sourcepub fn homepage(&self) -> CargoResult<String>
pub fn homepage(&self) -> CargoResult<String>
Gets the field workspace.package.homepage
.
sourcepub fn include(&self) -> CargoResult<Vec<String>>
pub fn include(&self) -> CargoResult<Vec<String>>
Gets the field workspace.package.include
.
sourcepub fn keywords(&self) -> CargoResult<Vec<String>>
pub fn keywords(&self) -> CargoResult<Vec<String>>
Gets the field workspace.package.keywords
.
sourcepub fn license(&self) -> CargoResult<String>
pub fn license(&self) -> CargoResult<String>
Gets the field workspace.package.license
.
sourcepub fn publish(&self) -> CargoResult<VecStringOrBool>
pub fn publish(&self) -> CargoResult<VecStringOrBool>
Gets the field workspace.package.publish
.
sourcepub fn repository(&self) -> CargoResult<String>
pub fn repository(&self) -> CargoResult<String>
Gets the field workspace.package.repository
.
sourcepub fn rust_version(&self) -> CargoResult<String>
pub fn rust_version(&self) -> CargoResult<String>
Gets the field workspace.package.rust-version
.
sourcepub fn version(&self) -> CargoResult<Version>
pub fn version(&self) -> CargoResult<Version>
Gets the field workspace.package.version
.
sourcepub fn get_dependency(
&self,
name: &str,
package_root: &Path
) -> CargoResult<TomlDependency>
pub fn get_dependency( &self, name: &str, package_root: &Path ) -> CargoResult<TomlDependency>
Gets a workspace dependency with the name
.
sourcepub fn license_file(&self, package_root: &Path) -> CargoResult<String>
pub fn license_file(&self, package_root: &Path) -> CargoResult<String>
Gets the field workspace.package.license-file
.
sourcepub fn readme(&self, package_root: &Path) -> CargoResult<StringOrBool>
pub fn readme(&self, package_root: &Path) -> CargoResult<StringOrBool>
Gets the field workspace.package.readme
.
pub fn ws_root(&self) -> &PathBuf
pub fn update_deps(&mut self, deps: Option<BTreeMap<String, TomlDependency>>)
pub fn update_lints(&mut self, lints: Option<TomlLints>)
pub fn update_ws_path(&mut self, ws_root: PathBuf)
Trait Implementations§
source§impl Clone for InheritableFields
impl Clone for InheritableFields
source§fn clone(&self) -> InheritableFields
fn clone(&self) -> InheritableFields
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more