pub struct InheritableFields { /* private fields */ }
Expand description
A group of fields that are inheritable by members of the workspace
Implementations
sourceimpl 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) -> 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
sourceimpl Clone for InheritableFields
impl Clone for InheritableFields
sourcefn clone(&self) -> InheritableFields
fn clone(&self) -> InheritableFields
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for InheritableFields
impl Debug for InheritableFields
sourceimpl Default for InheritableFields
impl Default for InheritableFields
sourcefn default() -> InheritableFields
fn default() -> InheritableFields
Returns the “default value” for a type. Read more
sourceimpl<'de> Deserialize<'de> for InheritableFields
impl<'de> Deserialize<'de> for InheritableFields
sourcefn 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
sourceimpl Serialize for InheritableFields
impl Serialize for InheritableFields
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
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more