pub struct SessionRuntimeInstruction {
pub instruction: String,
pub content: Option<SessionMessageContent>,
pub data: Option<Value>,
pub provider_message: Option<SessionProviderMessage>,
}Expand description
Typed runtime instruction. data is namespaced by the registered
instruction; it is never treated as provider-facing role metadata.
Fields§
§instruction: String§content: Option<SessionMessageContent>§data: Option<Value>§provider_message: Option<SessionProviderMessage>Trait Implementations§
Source§impl Clone for SessionRuntimeInstruction
impl Clone for SessionRuntimeInstruction
Source§fn clone(&self) -> SessionRuntimeInstruction
fn clone(&self) -> SessionRuntimeInstruction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 SessionRuntimeInstruction
impl Debug for SessionRuntimeInstruction
Source§impl<'de> Deserialize<'de> for SessionRuntimeInstruction
impl<'de> Deserialize<'de> for SessionRuntimeInstruction
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SessionRuntimeInstruction, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SessionRuntimeInstruction, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for SessionRuntimeInstruction
impl Serialize for SessionRuntimeInstruction
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for SessionRuntimeInstruction
Auto Trait Implementations§
impl Freeze for SessionRuntimeInstruction
impl RefUnwindSafe for SessionRuntimeInstruction
impl Send for SessionRuntimeInstruction
impl Sync for SessionRuntimeInstruction
impl Unpin for SessionRuntimeInstruction
impl UnsafeUnpin for SessionRuntimeInstruction
impl UnwindSafe for SessionRuntimeInstruction
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