pub struct SoftwareEntity {
pub entity_key: String,
pub occurrence_id: String,
pub repository_id: String,
pub source_scope: String,
pub entity_kind: SoftwareEntityKind,
pub name: String,
pub namespace: Option<String>,
pub source_kind: SoftwareSourceKind,
pub evidence_refs: Vec<SoftwareEvidenceRef>,
pub attributes: BTreeMap<String, String>,
pub created_graph_version: GraphVersion,
}Expand description
One observed occurrence of a stable software entity.
Fields§
§entity_key: String§occurrence_id: String§repository_id: String§source_scope: String§entity_kind: SoftwareEntityKind§name: String§namespace: Option<String>§source_kind: SoftwareSourceKind§evidence_refs: Vec<SoftwareEvidenceRef>§attributes: BTreeMap<String, String>§created_graph_version: GraphVersionImplementations§
Source§impl SoftwareEntity
impl SoftwareEntity
Sourcepub fn new(input: SoftwareEntityInput) -> Result<Self, DomainError>
pub fn new(input: SoftwareEntityInput) -> Result<Self, DomainError>
Separates a commit-independent entity key from its snapshot occurrence id.
Trait Implementations§
Source§impl Clone for SoftwareEntity
impl Clone for SoftwareEntity
Source§fn clone(&self) -> SoftwareEntity
fn clone(&self) -> SoftwareEntity
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SoftwareEntity
impl Debug for SoftwareEntity
Source§impl<'de> Deserialize<'de> for SoftwareEntity
impl<'de> Deserialize<'de> for SoftwareEntity
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
impl Eq for SoftwareEntity
Source§impl PartialEq for SoftwareEntity
impl PartialEq for SoftwareEntity
Source§impl Serialize for SoftwareEntity
impl Serialize for SoftwareEntity
impl StructuralPartialEq for SoftwareEntity
Auto Trait Implementations§
impl Freeze for SoftwareEntity
impl RefUnwindSafe for SoftwareEntity
impl Send for SoftwareEntity
impl Sync for SoftwareEntity
impl Unpin for SoftwareEntity
impl UnsafeUnpin for SoftwareEntity
impl UnwindSafe for SoftwareEntity
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.