pub struct KanonakNode {
pub id: Option<String>,
pub type_uri: Option<String>,
pub name: Option<String>,
pub content_hash: Option<String>,
pub version: Option<String>,
pub extra: Map<String, Value>,
}Expand description
The $-envelope as data — composed into a generated struct via
#[serde(flatten)], so an instance carries its own identity and serializes
straight to the normalized-JSON wire form. extra holds open-world
assertions outside the type-model, keyed by predicate URI; being the
innermost flatten map, it also collects unknown wire fields on deserialize.
Fields§
§id: Option<String>The resource’s canonical URI. Required to form a subject.
type_uri: Option<String>The durable class URI — the value of the synthesized type triple.
name: Option<String>An embedded value’s authored dict-key — HASH-RELEVANT (serialized into
the canonical form). Only meaningful when the instance is used as an
embedded value; None for subjects.
content_hash: Option<String>Package provenance on read; ignored if echoed back on write.
version: Option<String>Package provenance on read; ignored if echoed back on write.
extra: Map<String, Value>Open-world assertions outside the type-model, keyed by predicate URI. Rides the wire as sibling fields (flatten semantics).
Trait Implementations§
Source§impl Clone for KanonakNode
impl Clone for KanonakNode
Source§fn clone(&self) -> KanonakNode
fn clone(&self) -> KanonakNode
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for KanonakNode
impl Debug for KanonakNode
Source§impl Default for KanonakNode
impl Default for KanonakNode
Source§fn default() -> KanonakNode
fn default() -> KanonakNode
Source§impl<'de> Deserialize<'de> for KanonakNode
impl<'de> Deserialize<'de> for KanonakNode
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 PartialEq for KanonakNode
impl PartialEq for KanonakNode
Source§fn eq(&self, other: &KanonakNode) -> bool
fn eq(&self, other: &KanonakNode) -> bool
self and other values to be equal, and is used by ==.