pub struct Snippet {
pub snippet_spdx_identifier: String,
pub snippet_from_file_spdx_identifier: String,
pub ranges: Vec<Range>,
pub snippet_concluded_license: Option<SpdxExpression>,
pub license_information_in_snippet: Vec<String>,
pub snippet_comments_on_license: Option<String>,
pub snippet_copyright_text: Option<String>,
pub snippet_comment: Option<String>,
pub snippet_name: Option<String>,
pub snippet_attribution_text: Option<String>,
}
Expand description
Fields§
§snippet_spdx_identifier: String
§snippet_from_file_spdx_identifier: String
§ranges: Vec<Range>
§snippet_concluded_license: Option<SpdxExpression>
§license_information_in_snippet: Vec<String>
§snippet_comments_on_license: Option<String>
§snippet_copyright_text: Option<String>
§snippet_comment: Option<String>
§snippet_name: Option<String>
§snippet_attribution_text: Option<String>
Trait Implementations§
source§impl<'de> Deserialize<'de> for Snippet
impl<'de> Deserialize<'de> for Snippet
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<Snippet> for Snippet
impl PartialEq<Snippet> for Snippet
impl Eq for Snippet
impl StructuralEq for Snippet
impl StructuralPartialEq for Snippet
Auto Trait Implementations§
impl RefUnwindSafe for Snippet
impl Send for Snippet
impl Sync for Snippet
impl Unpin for Snippet
impl UnwindSafe for Snippet
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