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
impl Eq for Snippet
impl StructuralPartialEq for Snippet
Auto Trait Implementations§
impl Freeze for Snippet
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