pub struct License {
pub name: String,
pub spdx: Option<String>,
pub link: Vec<Link>,
}Expand description
schema license information
Fields§
§name: Stringlicense name
spdx: Option<String>license SPDX identifier
link: Vec<Link>links for license information
Trait Implementations§
Source§impl<S> Decode<S> for Licensewhere
S: ErrorSpan,
impl<S> Decode<S> for Licensewhere
S: ErrorSpan,
Source§fn decode_node(
node: &SpannedNode<S>,
ctx: &mut Context<S>,
) -> Result<Self, DecodeError<S>>
fn decode_node( node: &SpannedNode<S>, ctx: &mut Context<S>, ) -> Result<Self, DecodeError<S>>
Decodes the node from the ast
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