Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-ffi.
pub struct TrieEnvelope {
pub version: String,
pub generated_at: String,
pub workflow_name: String,
pub root: PredictionTrieNode,
}
Versioned envelope wrapping a prediction trie for JSON persistence.
Wire format matches NAT’s serialization.py:
version: StringWire-format version string.
generated_at: StringRFC 3339 timestamp indicating when the envelope was generated.
workflow_name: StringWorkflow or agent name associated with the trie.
root: PredictionTrieNodeRoot trie node.
impl TrieEnvelopeimpl TrieEnvelope
newpub fn new(root: PredictionTrieNode, workflow_name: impl Into<String>) -> Self
Create a new envelope with the current timestamp and version.
to_jsonpub fn to_json(&self) -> Result<String, Error>
Serialize to a JSON string.
from_jsonpub fn from_json(json: &str) -> Result<Self, Error>
Deserialize from a JSON string.
impl Clone for TrieEnvelopeimpl Clone for TrieEnvelope
clonefn clone(&self) -> TrieEnvelope
clone_fromfn clone_from(&mut self, source: &Self)
impl Debug for TrieEnvelopeimpl Debug for TrieEnvelope
fmtfn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<'de> Deserialize<'de> for TrieEnvelopeimpl<'de> Deserialize<'de> for TrieEnvelope
deserializefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl Serialize for TrieEnvelopeimpl Serialize for TrieEnvelope
serializefn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>where
__S: Serializer,