pub enum PayloadMode {
Text,
SemanticFrame,
EmbeddingHints,
SemanticGraph,
}Expand description
Payload mode for LDP message exchange.
Determines how task inputs and outputs are encoded between delegates.
Variants§
Text
Mode 0: Plain text. Universal fallback — every delegate supports this.
SemanticFrame
Mode 1: Semantic frames. Structured JSON with typed fields.
Maps directly to JamJet’s existing Value payloads.
EmbeddingHints
Mode 2: Embedding hints. Text + embedding vectors for semantic routing. Not yet implemented in MVP.
SemanticGraph
Mode 3: Semantic graphs. RDF-like structured knowledge. Not yet implemented in MVP.
Implementations§
Source§impl PayloadMode
impl PayloadMode
Sourcepub fn mode_number(&self) -> u8
pub fn mode_number(&self) -> u8
Mode number for wire protocol.
Sourcepub fn is_implemented(&self) -> bool
pub fn is_implemented(&self) -> bool
Whether this mode is implemented in the current version.
Trait Implementations§
Source§impl Clone for PayloadMode
impl Clone for PayloadMode
Source§fn clone(&self) -> PayloadMode
fn clone(&self) -> PayloadMode
Returns a duplicate of the value. Read more
1.0.0 · 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 PayloadMode
impl Debug for PayloadMode
Source§impl<'de> Deserialize<'de> for PayloadMode
impl<'de> Deserialize<'de> for PayloadMode
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
Source§impl Display for PayloadMode
impl Display for PayloadMode
Source§impl Hash for PayloadMode
impl Hash for PayloadMode
Source§impl PartialEq for PayloadMode
impl PartialEq for PayloadMode
Source§impl Serialize for PayloadMode
impl Serialize for PayloadMode
impl Copy for PayloadMode
impl Eq for PayloadMode
impl StructuralPartialEq for PayloadMode
Auto Trait Implementations§
impl Freeze for PayloadMode
impl RefUnwindSafe for PayloadMode
impl Send for PayloadMode
impl Sync for PayloadMode
impl Unpin for PayloadMode
impl UnsafeUnpin for PayloadMode
impl UnwindSafe for PayloadMode
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,
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.