pub struct Licence {
pub id: &'static str,
pub covers: &'static str,
pub text: &'static str,
}Expand description
A licence under which part of a crate is distributed: one term of the crate’s
licence expression, what it covers, and its full text, as shipped in the crate’s
LICENSES/ directory.
A program that embeds the crate can show these texts to its users (the W3C licence of the XML Signature schema asks for its notice “in a location viewable to users”).
Fields§
§id: &'static strThe SPDX identifier, or LicenseRef- reference, of the licence expression.
covers: &'static strWhat it covers, in a sentence.
text: &'static strThe full text.
Trait Implementations§
impl Copy for Licence
impl Eq for Licence
impl StructuralPartialEq for Licence
Auto Trait Implementations§
impl Forget for Licence
impl Freeze for Licence
impl RefUnwindSafe for Licence
impl Send for Licence
impl Sync for Licence
impl Unpin for Licence
impl UnsafeUnpin for Licence
impl UnwindSafe for Licence
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