pub struct OntologyIdentity {
pub source_scope: SourceScope,
pub domain_id: String,
pub entity_id: String,
pub entity_kind: OntologyEntityKind,
}Expand description
Immutable ontology identity independent of a display label.
Fields§
§source_scope: SourceScope§domain_id: String§entity_id: String§entity_kind: OntologyEntityKindImplementations§
Source§impl OntologyIdentity
impl OntologyIdentity
Sourcepub fn new(
source_scope: SourceScope,
domain_id: impl Into<String>,
entity_id: impl Into<String>,
entity_kind: OntologyEntityKind,
) -> Result<Self, DomainError>
pub fn new( source_scope: SourceScope, domain_id: impl Into<String>, entity_id: impl Into<String>, entity_kind: OntologyEntityKind, ) -> Result<Self, DomainError>
Validates the scoped identity used to create stable typed entity ids.
Sourcepub fn stable_entity_id(&self) -> String
pub fn stable_entity_id(&self) -> String
Returns a deterministic id that does not depend on the display name.
Trait Implementations§
Source§impl Clone for OntologyIdentity
impl Clone for OntologyIdentity
Source§fn clone(&self) -> OntologyIdentity
fn clone(&self) -> OntologyIdentity
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 OntologyIdentity
impl Debug for OntologyIdentity
Source§impl<'de> Deserialize<'de> for OntologyIdentity
impl<'de> Deserialize<'de> for OntologyIdentity
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 OntologyIdentity
Source§impl Hash for OntologyIdentity
impl Hash for OntologyIdentity
Source§impl PartialEq for OntologyIdentity
impl PartialEq for OntologyIdentity
Source§impl Serialize for OntologyIdentity
impl Serialize for OntologyIdentity
impl StructuralPartialEq for OntologyIdentity
Auto Trait Implementations§
impl Freeze for OntologyIdentity
impl RefUnwindSafe for OntologyIdentity
impl Send for OntologyIdentity
impl Sync for OntologyIdentity
impl Unpin for OntologyIdentity
impl UnsafeUnpin for OntologyIdentity
impl UnwindSafe for OntologyIdentity
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.