pub enum License {
Mit,
Apache2,
Gplv3,
Bsd,
Mpl,
Agplv3,
Other(String),
}Expand description
Licenses for the license = "" attribute
Variants§
Mit
license = "MIT"
Apache2
license = "APACHE-2.0"
Gplv3
license = "GPL-3.0"
Bsd
license = "BSD"
Mpl
license = "MPL"
Agplv3
license = "AGPL-3.0"
Other(String)
Any other license
Trait Implementations§
impl StructuralPartialEq for License
Auto Trait Implementations§
impl Freeze for License
impl RefUnwindSafe for License
impl Send for License
impl Sync for License
impl Unpin for License
impl UnsafeUnpin for License
impl UnwindSafe for License
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DependencyExt for Twhere
T: Display,
impl<T> DependencyExt for Twhere
T: Display,
Source§fn version(&self, version: &str) -> Dependency
fn version(&self, version: &str) -> Dependency
Constructs a
Dependency using self.to_string() as the name, and version as the
semver version Read moreSource§fn repo(&self, repo: &str) -> Dependency
fn repo(&self, repo: &str) -> Dependency
Constructs a
Dependency using self.to_string() as the name, and repo as the git
repository Read moreSource§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more