pub struct ControlCommandView {
pub command: Option<String>,
pub message: Option<String>,
pub payload: Option<Option<Value>>,
pub seq: Option<i32>,
}Fields§
§command: Option<String>Command is what was asked, from a closed four: pause, resume, stop, message. It is an INTENT — the poller decides what to do about it, and the session’s status changes only when the poller reports back that it did.
message: Option<String>Message is the text that came with the command: what to say into the run for message, and the cancellation reason for stop. Up to 16 KiB. Empty on a bare pause or resume.
payload: Option<Option<Value>>§seq: Option<i32>Seq is this command’s position in the session’s log — the same monotonic number every other turn is ordered by, so a command sits in the transcript where it was issued. Send the highest one you applied back as after and it is never redelivered.
Implementations§
Source§impl ControlCommandView
impl ControlCommandView
pub fn new() -> ControlCommandView
Trait Implementations§
Source§impl Clone for ControlCommandView
impl Clone for ControlCommandView
Source§fn clone(&self) -> ControlCommandView
fn clone(&self) -> ControlCommandView
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 ControlCommandView
impl Debug for ControlCommandView
Source§impl Default for ControlCommandView
impl Default for ControlCommandView
Source§fn default() -> ControlCommandView
fn default() -> ControlCommandView
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ControlCommandView
impl<'de> Deserialize<'de> for ControlCommandView
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 PartialEq for ControlCommandView
impl PartialEq for ControlCommandView
Source§impl Serialize for ControlCommandView
impl Serialize for ControlCommandView
impl StructuralPartialEq for ControlCommandView
Auto Trait Implementations§
impl Freeze for ControlCommandView
impl RefUnwindSafe for ControlCommandView
impl Send for ControlCommandView
impl Sync for ControlCommandView
impl Unpin for ControlCommandView
impl UnsafeUnpin for ControlCommandView
impl UnwindSafe for ControlCommandView
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