pub struct FileOccurrence {
pub attributions: Option<Vec<String>>,
pub comment: Option<String>,
pub contributors: Option<Vec<String>>,
pub copyright: Option<String>,
pub files_license_info: Option<Vec<String>>,
pub id: Option<String>,
pub license_concluded: Option<License>,
pub notice: Option<String>,
}
Expand description
FileOccurrence represents an SPDX File Information section: https://spdx.github.io/spdx-spec/4-file-information/
This type is not used in any activity, and only used as part of another schema.
Fields§
§attributions: Option<Vec<String>>
This field provides a place for the SPDX data creator to record, at the file level, acknowledgements that may be needed to be communicated in some contexts
comment: Option<String>
This field provides a place for the SPDX file creator to record any general comments about the file
contributors: Option<Vec<String>>
This field provides a place for the SPDX file creator to record file contributors
copyright: Option<String>
Identify the copyright holder of the file, as well as any dates present
files_license_info: Option<Vec<String>>
This field contains the license information actually found in the file, if any
id: Option<String>
Uniquely identify any element in an SPDX document which may be referenced by other elements
license_concluded: Option<License>
This field contains the license the SPDX file creator has concluded as governing the file or alternative values if the governing license cannot be determined
notice: Option<String>
This field provides a place for the SPDX file creator to record license notices or other such related notices found in the file
Trait Implementations§
Source§impl Clone for FileOccurrence
impl Clone for FileOccurrence
Source§fn clone(&self) -> FileOccurrence
fn clone(&self) -> FileOccurrence
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for FileOccurrence
impl Debug for FileOccurrence
Source§impl Default for FileOccurrence
impl Default for FileOccurrence
Source§fn default() -> FileOccurrence
fn default() -> FileOccurrence
Source§impl<'de> Deserialize<'de> for FileOccurrence
impl<'de> Deserialize<'de> for FileOccurrence
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>,
Source§impl Serialize for FileOccurrence
impl Serialize for FileOccurrence
impl Part for FileOccurrence
Auto Trait Implementations§
impl Freeze for FileOccurrence
impl RefUnwindSafe for FileOccurrence
impl Send for FileOccurrence
impl Sync for FileOccurrence
impl Unpin for FileOccurrence
impl UnwindSafe for FileOccurrence
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more