pub struct Crate {
pub name: String,
pub version: String,
pub authors: Vec<String>,
pub license: CrateLicense,
pub website: String,
}Expand description
Information about a crate.
The crate can be either the crate from which collect is called,
or one of its dependencies.
Fields§
§name: StringThe name of the crate.
version: StringThe version of the crate.
The authors of the crate.
license: CrateLicenseThe licenses of the crate.
If the
license
attribute of the manifest is set,
its content is be passed as an spdx::Expression.
Otherwise, if the
license-file
is specified,
its content is be included as a String.
website: StringTrait Implementations§
Source§impl Ord for Crate
impl Ord for Crate
Source§impl PartialOrd for Crate
impl PartialOrd for Crate
impl Eq for Crate
impl StructuralPartialEq 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