pub struct InheritableFields {Show 20 fields
pub dependencies: Option<BTreeMap<String, TomlDependency>>,
pub lints: Option<TomlLints>,
pub version: Option<Version>,
pub authors: Option<Vec<String>>,
pub description: Option<String>,
pub homepage: Option<String>,
pub documentation: Option<String>,
pub readme: Option<StringOrBool>,
pub keywords: Option<Vec<String>>,
pub categories: Option<Vec<String>>,
pub license: Option<String>,
pub license_file: Option<String>,
pub repository: Option<String>,
pub publish: Option<VecStringOrBool>,
pub edition: Option<String>,
pub badges: Option<BTreeMap<String, BTreeMap<String, String>>>,
pub exclude: Option<Vec<String>>,
pub include: Option<Vec<String>>,
pub rust_version: Option<RustVersion>,
pub ws_root: PathBuf,
}
Expand description
A group of fields that are inheritable by members of the workspace
Fields§
§dependencies: Option<BTreeMap<String, TomlDependency>>
§lints: Option<TomlLints>
§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<RustVersion>
§ws_root: PathBuf
Implementations§
source§impl InheritableFields
impl InheritableFields
sourcefn lints(&self) -> CargoResult<TomlLints>
fn lints(&self) -> CargoResult<TomlLints>
Gets the field workspace.lints
.
Gets the field workspace.package.authors
.
sourcefn badges(&self) -> CargoResult<BTreeMap<String, BTreeMap<String, String>>>
fn badges(&self) -> CargoResult<BTreeMap<String, BTreeMap<String, String>>>
Gets the field workspace.package.badges
.
sourcefn categories(&self) -> CargoResult<Vec<String>>
fn categories(&self) -> CargoResult<Vec<String>>
Gets the field workspace.package.categories
.
sourcefn description(&self) -> CargoResult<String>
fn description(&self) -> CargoResult<String>
Gets the field workspace.package.description
.
sourcefn documentation(&self) -> CargoResult<String>
fn documentation(&self) -> CargoResult<String>
Gets the field workspace.package.documentation
.
sourcefn edition(&self) -> CargoResult<String>
fn edition(&self) -> CargoResult<String>
Gets the field workspace.package.edition
.
sourcefn exclude(&self) -> CargoResult<Vec<String>>
fn exclude(&self) -> CargoResult<Vec<String>>
Gets the field workspace.package.exclude
.
sourcefn homepage(&self) -> CargoResult<String>
fn homepage(&self) -> CargoResult<String>
Gets the field workspace.package.homepage
.
sourcefn include(&self) -> CargoResult<Vec<String>>
fn include(&self) -> CargoResult<Vec<String>>
Gets the field workspace.package.include
.
sourcefn keywords(&self) -> CargoResult<Vec<String>>
fn keywords(&self) -> CargoResult<Vec<String>>
Gets the field workspace.package.keywords
.
sourcefn license(&self) -> CargoResult<String>
fn license(&self) -> CargoResult<String>
Gets the field workspace.package.license
.
sourcefn publish(&self) -> CargoResult<VecStringOrBool>
fn publish(&self) -> CargoResult<VecStringOrBool>
Gets the field workspace.package.publish
.
sourcefn repository(&self) -> CargoResult<String>
fn repository(&self) -> CargoResult<String>
Gets the field workspace.package.repository
.
sourcefn rust_version(&self) -> CargoResult<RustVersion>
fn rust_version(&self) -> CargoResult<RustVersion>
Gets the field workspace.package.rust-version
.
sourcefn version(&self) -> CargoResult<Version>
fn version(&self) -> CargoResult<Version>
Gets the field workspace.package.version
.
sourcefn get_dependency(
&self,
name: &str,
package_root: &Path
) -> CargoResult<TomlDependency>
fn get_dependency( &self, name: &str, package_root: &Path ) -> CargoResult<TomlDependency>
Gets a workspace dependency with the name
.
sourcefn license_file(&self, package_root: &Path) -> CargoResult<String>
fn license_file(&self, package_root: &Path) -> CargoResult<String>
Gets the field workspace.package.license-file
.
sourcefn readme(&self, package_root: &Path) -> CargoResult<StringOrBool>
fn readme(&self, package_root: &Path) -> CargoResult<StringOrBool>
Gets the field workspace.package.readme
.
fn ws_root(&self) -> &PathBuf
fn update_deps(&mut self, deps: Option<BTreeMap<String, TomlDependency>>)
fn update_lints(&mut self, lints: Option<TomlLints>)
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 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
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>,
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> Serialize for Twhere
T: Serialize + ?Sized,
impl<T> Serialize for Twhere T: Serialize + ?Sized,
fn erased_serialize(&self, serializer: &mut dyn Serializer) -> Result<Ok, Error>
§impl<T> WithSubscriber for T
impl<T> WithSubscriber for T
§fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>where S: Into<Dispatch>,
§fn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
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: 568 bytes