Struct spdx_rs::models::FileInformation
source · pub struct FileInformation {
pub file_name: String,
pub file_spdx_identifier: String,
pub file_type: Vec<FileType>,
pub file_checksum: Vec<Checksum>,
pub concluded_license: Option<SpdxExpression>,
pub license_information_in_file: Vec<SpdxExpression>,
pub comments_on_license: Option<String>,
pub copyright_text: Option<String>,
pub file_comment: Option<String>,
pub file_notice: Option<String>,
pub file_contributor: Vec<String>,
pub file_attribution_text: Option<Vec<String>>,
}
Expand description
File Information
SPDX’s File Information
Fields§
§file_name: String
§file_spdx_identifier: String
§file_type: Vec<FileType>
§file_checksum: Vec<Checksum>
§concluded_license: Option<SpdxExpression>
§license_information_in_file: Vec<SpdxExpression>
§comments_on_license: Option<String>
§copyright_text: Option<String>
§file_comment: Option<String>
§file_notice: Option<String>
§file_contributor: Vec<String>
§file_attribution_text: Option<Vec<String>>
Implementations§
Trait Implementations§
source§impl Clone for FileInformation
impl Clone for FileInformation
source§fn clone(&self) -> FileInformation
fn clone(&self) -> FileInformation
Returns a copy 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 FileInformation
impl Debug for FileInformation
source§impl Default for FileInformation
impl Default for FileInformation
source§impl<'de> Deserialize<'de> for FileInformation
impl<'de> Deserialize<'de> for FileInformation
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<FileInformation> for FileInformation
impl PartialEq<FileInformation> for FileInformation
source§fn eq(&self, other: &FileInformation) -> bool
fn eq(&self, other: &FileInformation) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for FileInformation
impl Serialize for FileInformation
impl Eq for FileInformation
impl StructuralEq for FileInformation
impl StructuralPartialEq for FileInformation
Auto Trait Implementations§
impl RefUnwindSafe for FileInformation
impl Send for FileInformation
impl Sync for FileInformation
impl Unpin for FileInformation
impl UnwindSafe for FileInformation
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