pub struct RelationshipOccurrence {
pub comment: Option<String>,
pub source: Option<String>,
pub target: Option<String>,
pub type_: Option<String>,
}
Expand description
RelationshipOccurrence represents an SPDX Relationship section: https://spdx.github.io/spdx-spec/7-relationships-between-SPDX-elements/
This type is not used in any activity, and only used as part of another schema.
Fields§
§comment: Option<String>
A place for the SPDX file creator to record any general comments about the relationship
source: Option<String>
Also referred to as SPDXRef-A The source SPDX element (file, package, etc)
target: Option<String>
Also referred to as SPDXRef-B The target SPDC element (file, package, etc) In cases where there are “known unknowns”, the use of the keyword NOASSERTION can be used The keywords NONE can be used to indicate that an SPDX element (package/file/snippet) has no other elements connected by some relationship to it
type_: Option<String>
Output only. The type of relationship between the source and target SPDX elements
Trait Implementations§
Source§impl Clone for RelationshipOccurrence
impl Clone for RelationshipOccurrence
Source§fn clone(&self) -> RelationshipOccurrence
fn clone(&self) -> RelationshipOccurrence
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for RelationshipOccurrence
impl Debug for RelationshipOccurrence
Source§impl Default for RelationshipOccurrence
impl Default for RelationshipOccurrence
Source§fn default() -> RelationshipOccurrence
fn default() -> RelationshipOccurrence
Source§impl<'de> Deserialize<'de> for RelationshipOccurrence
impl<'de> Deserialize<'de> for RelationshipOccurrence
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 RelationshipOccurrence
impl Serialize for RelationshipOccurrence
impl Part for RelationshipOccurrence
Auto Trait Implementations§
impl Freeze for RelationshipOccurrence
impl RefUnwindSafe for RelationshipOccurrence
impl Send for RelationshipOccurrence
impl Sync for RelationshipOccurrence
impl Unpin for RelationshipOccurrence
impl UnwindSafe for RelationshipOccurrence
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