pub struct CrateConfig {
pub name: String,
pub registry: Option<String>,
}Expand description
Identity and registry target for the crate.
Fields§
§name: StringCrate name as it appears in Cargo.toml.
registry: Option<String>Registry alias (e.g. "crates-io"). Defaults to crates.io when absent.
Trait Implementations§
Source§impl Clone for CrateConfig
impl Clone for CrateConfig
Source§fn clone(&self) -> CrateConfig
fn clone(&self) -> CrateConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CrateConfig
impl Debug for CrateConfig
Source§impl Default for CrateConfig
impl Default for CrateConfig
Source§fn default() -> CrateConfig
fn default() -> CrateConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CrateConfig
impl<'de> Deserialize<'de> for CrateConfig
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>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for CrateConfig
impl PartialEq for CrateConfig
Source§impl Serialize for CrateConfig
impl Serialize for CrateConfig
impl StructuralPartialEq for CrateConfig
Auto Trait Implementations§
impl Freeze for CrateConfig
impl RefUnwindSafe for CrateConfig
impl Send for CrateConfig
impl Sync for CrateConfig
impl Unpin for CrateConfig
impl UnsafeUnpin for CrateConfig
impl UnwindSafe for CrateConfig
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
Mutably borrows from an owned value. Read more