pub struct GrammarLicense {
pub id: String,
pub repository_url: String,
pub source_path: String,
pub revision: SourceRevision,
pub text: String,
pub text_blake3: Blake3Digest,
pub spdx_expression: Option<String>,
}Expand description
Exact applicable license text retained once and referenced by grammar rows.
Fields§
§id: StringStable manifest-local license record identity.
repository_url: StringHTTPS repository containing the exact text.
source_path: StringRepository-relative license source path.
revision: SourceRevisionFull repository revision at which the text was read.
text: StringExact applicable license text.
text_blake3: Blake3DigestBLAKE3 of the exact UTF-8 license text.
spdx_expression: Option<String>Optional declarative SPDX expression; exact text remains authoritative.
Implementations§
Trait Implementations§
Source§impl Clone for GrammarLicense
impl Clone for GrammarLicense
Source§fn clone(&self) -> GrammarLicense
fn clone(&self) -> GrammarLicense
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GrammarLicense
impl Debug for GrammarLicense
Source§impl<'de> Deserialize<'de> for GrammarLicense
impl<'de> Deserialize<'de> for GrammarLicense
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 PartialEq for GrammarLicense
impl PartialEq for GrammarLicense
Source§impl Serialize for GrammarLicense
impl Serialize for GrammarLicense
impl Eq for GrammarLicense
impl StructuralPartialEq for GrammarLicense
Auto Trait Implementations§
impl Freeze for GrammarLicense
impl RefUnwindSafe for GrammarLicense
impl Send for GrammarLicense
impl Sync for GrammarLicense
impl Unpin for GrammarLicense
impl UnwindSafe for GrammarLicense
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,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.