pub struct InheritableFields {
package: Option<InheritablePackage>,
dependencies: Option<BTreeMap<PackageName, TomlDependency>>,
lints: Option<TomlLints>,
_ws_root: PathBuf,
}
Expand description
A group of fields that are inheritable by members of the workspace
Fields§
§package: Option<InheritablePackage>
§dependencies: Option<BTreeMap<PackageName, TomlDependency>>
§lints: Option<TomlLints>
§_ws_root: PathBuf
Implementations§
source§impl InheritableFields
impl InheritableFields
Gets the field workspace.packageauthors
.
sourcefn categories(&self) -> CargoResult<Vec<String>>
fn categories(&self) -> CargoResult<Vec<String>>
Gets the field workspace.packagecategories
.
sourcefn description(&self) -> CargoResult<String>
fn description(&self) -> CargoResult<String>
Gets the field workspace.packagedescription
.
sourcefn documentation(&self) -> CargoResult<String>
fn documentation(&self) -> CargoResult<String>
Gets the field workspace.packagedocumentation
.
sourcefn edition(&self) -> CargoResult<String>
fn edition(&self) -> CargoResult<String>
Gets the field workspace.packageedition
.
sourcefn exclude(&self) -> CargoResult<Vec<String>>
fn exclude(&self) -> CargoResult<Vec<String>>
Gets the field workspace.packageexclude
.
sourcefn homepage(&self) -> CargoResult<String>
fn homepage(&self) -> CargoResult<String>
Gets the field workspace.packagehomepage
.
sourcefn include(&self) -> CargoResult<Vec<String>>
fn include(&self) -> CargoResult<Vec<String>>
Gets the field workspace.packageinclude
.
sourcefn keywords(&self) -> CargoResult<Vec<String>>
fn keywords(&self) -> CargoResult<Vec<String>>
Gets the field workspace.packagekeywords
.
sourcefn license(&self) -> CargoResult<String>
fn license(&self) -> CargoResult<String>
Gets the field workspace.packagelicense
.
sourcefn publish(&self) -> CargoResult<VecStringOrBool>
fn publish(&self) -> CargoResult<VecStringOrBool>
Gets the field workspace.packagepublish
.
sourcefn repository(&self) -> CargoResult<String>
fn repository(&self) -> CargoResult<String>
Gets the field workspace.packagerepository
.
sourcefn rust_version(&self) -> CargoResult<RustVersion>
fn rust_version(&self) -> CargoResult<RustVersion>
Gets the field workspace.packagerust-version
.
sourcefn version(&self) -> CargoResult<Version>
fn version(&self) -> CargoResult<Version>
Gets the field workspace.packageversion
.
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
.
sourcepub fn lints(&self) -> CargoResult<TomlLints>
pub fn lints(&self) -> CargoResult<TomlLints>
Gets the field workspace.lint
.
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
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
Auto Trait Implementations§
impl Freeze for InheritableFields
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)§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>
§impl<T> Pointable for T
impl<T> Pointable for T
§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>
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: 552 bytes