pub enum License {
Name(String),
Text(String),
Named(String, String),
}Expand description
A license, which can be just a name, a text or a named license.
Variants§
Name(String)
A license with just a name.
Text(String)
A license with just a text.
Named(String, String)
A license with a name and a text.
Implementations§
Trait Implementations§
Source§impl From<LicenseParagraph> for License
impl From<LicenseParagraph> for License
Source§fn from(p: LicenseParagraph) -> Self
fn from(p: LicenseParagraph) -> Self
Converts to this type from the input type.
impl Eq for License
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 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