Enum Payload
Generated from cargo doc --no-deps -p nemo-relay -p nemo-relay-adaptive -p nemo-relay-pii-redaction -p nemo-relay-ffi -p nemo-relay-types -p nemo-relay-plugin -p nemo-relay-worker-proto -p nemo-relay-worker.
pub enum Payload {
Event(JsonEnvelope),
Tool(ToolInvocation),
Llm(LlmInvocation),
}
Variants
Event(JsonEnvelope)
Event(JsonEnvelope)
Tool(ToolInvocation)
Tool(ToolInvocation)
Llm(LlmInvocation)
Llm(LlmInvocation)
Implementations
impl Payload
impl Payload
encode
pub fn encode(&self, buf: &mut impl BufMut)
Encodes the message to a buffer.
merge
pub fn merge(
field: &mut Option<Payload>,
tag: u32,
wire_type: WireType,
buf: &mut impl Buf,
ctx: DecodeContext,
) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into self.
encoded_len
pub fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Trait Implementations
impl Clone for Payload
impl Clone for Payload
clone
fn clone(&self) -> Payload
clone_from
fn clone_from(&mut self, source: &Self)
impl Debug for Payload
impl Debug for Payload
fmt
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl Hash for Payload
impl Hash for Payload
hash
fn hash<__H: Hasher>(&self, state: &mut __H)
hash_slice
fn hash_slice<H>(data: &[Self], state: &mut H)where
H: Hasher,
Self: Sized,
impl PartialEq for Payload
impl PartialEq for Payload
eq
fn eq(&self, other: &Payload) -> bool
ne
fn ne(&self, other: &Rhs) -> bool
impl Eq for Payload
impl Eq for Payload
impl StructuralPartialEq for Payload
impl StructuralPartialEq for Payload