Struct spdx_rs::models::ExternalDocumentReference
source · pub struct ExternalDocumentReference {
pub id_string: String,
pub spdx_document_uri: String,
pub checksum: Checksum,
}
Expand description
Fields§
§id_string: String
Unique ID string of the reference.
spdx_document_uri: String
Unique ID for the external document.
checksum: Checksum
Checksum of the external document following the checksum format defined in https://spdx.github.io/spdx-spec/4-file-information/#44-file-checksum.
Implementations§
Trait Implementations§
source§impl Clone for ExternalDocumentReference
impl Clone for ExternalDocumentReference
source§fn clone(&self) -> ExternalDocumentReference
fn clone(&self) -> ExternalDocumentReference
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 ExternalDocumentReference
impl Debug for ExternalDocumentReference
source§impl<'de> Deserialize<'de> for ExternalDocumentReference
impl<'de> Deserialize<'de> for ExternalDocumentReference
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<ExternalDocumentReference> for ExternalDocumentReference
impl PartialEq<ExternalDocumentReference> for ExternalDocumentReference
source§fn eq(&self, other: &ExternalDocumentReference) -> bool
fn eq(&self, other: &ExternalDocumentReference) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<ExternalDocumentReference> for ExternalDocumentReference
impl PartialOrd<ExternalDocumentReference> for ExternalDocumentReference
source§fn partial_cmp(&self, other: &ExternalDocumentReference) -> Option<Ordering>
fn partial_cmp(&self, other: &ExternalDocumentReference) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for ExternalDocumentReference
impl StructuralEq for ExternalDocumentReference
impl StructuralPartialEq for ExternalDocumentReference
Auto Trait Implementations§
impl RefUnwindSafe for ExternalDocumentReference
impl Send for ExternalDocumentReference
impl Sync for ExternalDocumentReference
impl Unpin for ExternalDocumentReference
impl UnwindSafe for ExternalDocumentReference
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