pub struct DomainModelIdentity {
pub identity_scheme_version: String,
pub producer: String,
pub producer_version: String,
pub language_schema_version: String,
pub compiler_interpretation_version: String,
pub canonicalization_version: String,
pub source_set_hash: String,
pub content_hash: String,
pub semantic_closure_hash: String,
pub semantic_pack_set_hash: Option<String>,
pub registry_content_hash: Option<String>,
}Expand description
Typed identity struct for a domain model across interface boundaries (F-04).
Fields§
§identity_scheme_version: String§producer: String§producer_version: String§language_schema_version: String§compiler_interpretation_version: String§canonicalization_version: String§source_set_hash: String§content_hash: String§semantic_closure_hash: String§semantic_pack_set_hash: Option<String>§registry_content_hash: Option<String>Implementations§
Source§impl DomainModelIdentity
impl DomainModelIdentity
pub fn canonical_digest(&self) -> String
Source§impl DomainModelIdentity
impl DomainModelIdentity
Sourcepub fn from_document(
doc: &CanonicalSemanticEnvelopeDocument,
registry_content_hash: Option<&str>,
) -> Self
pub fn from_document( doc: &CanonicalSemanticEnvelopeDocument, registry_content_hash: Option<&str>, ) -> Self
Build the identity of a resolved model from its canonical document.
content_hash is the document’s self_hash; the pack-set hash is the
document’s (the empty pack set still hashes a fixed frame).
Sourcepub fn validate(&self) -> Result<(), WorldRefError>
pub fn validate(&self) -> Result<(), WorldRefError>
Fail closed on an unsupported scheme or malformed hash fields.
Trait Implementations§
Source§impl Clone for DomainModelIdentity
impl Clone for DomainModelIdentity
Source§impl Debug for DomainModelIdentity
impl Debug for DomainModelIdentity
Source§impl<'de> Deserialize<'de> for DomainModelIdentity
impl<'de> Deserialize<'de> for DomainModelIdentity
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 DomainModelIdentity
Source§impl PartialEq for DomainModelIdentity
impl PartialEq for DomainModelIdentity
Source§impl Serialize for DomainModelIdentity
impl Serialize for DomainModelIdentity
impl StructuralPartialEq for DomainModelIdentity
Auto Trait Implementations§
impl Freeze for DomainModelIdentity
impl RefUnwindSafe for DomainModelIdentity
impl Send for DomainModelIdentity
impl Sync for DomainModelIdentity
impl Unpin for DomainModelIdentity
impl UnsafeUnpin for DomainModelIdentity
impl UnwindSafe for DomainModelIdentity
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
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.