Struct cargo_edit::CrateSpec
source · pub struct CrateSpec {
pub name: String,
pub version_req: Option<String>,
}
Expand description
User-specified crate
This can be a
- Name (e.g.
docopt
) - Name and a version req (e.g.
docopt@^0.8
) - Path
Fields§
§name: String
Crate name
version_req: Option<String>
Optional version requirement
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CrateSpec
impl RefUnwindSafe for CrateSpec
impl Send for CrateSpec
impl Sync for CrateSpec
impl Unpin for CrateSpec
impl UnwindSafe for CrateSpec
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