pub struct License {
pub source: String,
pub spdx: String,
pub note: String,
pub provenance: String,
pub generated_by: Option<GeneratedBy>,
}Expand description
The license block: the human half and the machine half of provenance.
Fields§
§source: StringWhere the asset came from (original, or a named upstream).
spdx: StringSPDX id (ADR-0013).
note: StringHuman note.
provenance: StringHuman-readable provenance sentence.
generated_by: Option<GeneratedBy>The machine-readable provenance row: what regenerates these exact bytes.
Absent for a piece nothing can regenerate — an ingested community build, or a hand-edited one. Present, it is the ADR-0006 claim in a form a tool can act on rather than a sentence a human can read.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for License
impl<'de> Deserialize<'de> for License
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for License
impl JsonSchema for License
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreimpl 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