Struct spdx_rs::models::Relationship
source · pub struct Relationship {
pub spdx_element_id: String,
pub related_spdx_element: String,
pub relationship_type: RelationshipType,
pub comment: Option<String>,
}
Expand description
Fields§
§spdx_element_id: String
SPDX ID of the element.
SPDX ID of the related element.
relationship_type: RelationshipType
Type of the relationship.
comment: Option<String>
Implementations§
source§impl Relationship
impl Relationship
Trait Implementations§
source§impl Clone for Relationship
impl Clone for Relationship
source§fn clone(&self) -> Relationship
fn clone(&self) -> Relationship
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 Relationship
impl Debug for Relationship
source§impl<'de> Deserialize<'de> for Relationship
impl<'de> Deserialize<'de> for Relationship
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 Hash for Relationship
impl Hash for Relationship
source§impl PartialEq<Relationship> for Relationship
impl PartialEq<Relationship> for Relationship
source§fn eq(&self, other: &Relationship) -> bool
fn eq(&self, other: &Relationship) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for Relationship
impl Serialize for Relationship
impl Eq for Relationship
impl StructuralEq for Relationship
impl StructuralPartialEq for Relationship
Auto Trait Implementations§
impl RefUnwindSafe for Relationship
impl Send for Relationship
impl Sync for Relationship
impl Unpin for Relationship
impl UnwindSafe for Relationship
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