pub struct Crate {
pub name: String,
pub version: String,
pub path: PathBuf,
pub yanked: YankState,
}Expand description
A crate stored on disk
Fields§
§name: StringCrate name
version: StringCrate version
path: PathBufPath to the crate directory
yanked: YankStateWhether this crate was marked as yanked
Implementations§
Trait Implementations§
impl Eq for Crate
Auto Trait Implementations§
impl Freeze for Crate
impl RefUnwindSafe for Crate
impl Send for Crate
impl Sync for Crate
impl Unpin for Crate
impl UnwindSafe for Crate
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