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