Struct spdx_rs::models::Snippet [−][src]
pub struct Snippet {
pub snippet_spdx_identifier: String,
pub snippet_from_file_spdx_identifier: String,
pub ranges: Vec<Range>,
pub snippet_concluded_license: SPDXExpression,
pub license_information_in_snippet: Vec<String>,
pub snippet_comments_on_license: Option<String>,
pub snippet_copyright_text: 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: SPDXExpression
license_information_in_snippet: Vec<String>
snippet_comments_on_license: Option<String>
snippet_copyright_text: String
snippet_comment: Option<String>
snippet_name: Option<String>
snippet_attribution_text: Option<String>
Trait Implementations
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
Auto Trait Implementations
impl RefUnwindSafe for Snippet
impl UnwindSafe for Snippet
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more