pub struct MessageAgentInput {
pub target: Option<String>,
pub message: Option<String>,
pub constraints: Option<String>,
pub expecting: Option<String>,
pub expects_reply: bool,
pub cancel: Option<String>,
}Fields§
§target: Option<String>Who to message: a roster name or handle. Required for a send; omit when cancelling. The host validates it against its live roster.
message: Option<String>The message YOU composed for that agent (max 16000 chars). Do not add a “Message from …” prefix; the host adds it. Required for a send; omit when cancelling.
constraints: Option<String>Limits their answer must respect (scope, length, format).
expecting: Option<String>What you need back from them; shown to them as the reply they owe you.
expects_reply: boolfalse: notify only — no reply comes back and nothing wakes you.
cancel: Option<String>Cancel mode: a delivery_id from your own ack. Withdraws that queued
request or stops the turn it started. Cannot be combined with
target/message.
Trait Implementations§
Source§impl Clone for MessageAgentInput
impl Clone for MessageAgentInput
Source§impl Debug for MessageAgentInput
impl Debug for MessageAgentInput
Source§impl<'de> Deserialize<'de> for MessageAgentInput
impl<'de> Deserialize<'de> for MessageAgentInput
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 JsonSchema for MessageAgentInput
impl JsonSchema for MessageAgentInput
Source§fn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Forget for MessageAgentInput
impl Freeze for MessageAgentInput
impl Move for MessageAgentInput
impl RefUnwindSafe for MessageAgentInput
impl Send for MessageAgentInput
impl Sync for MessageAgentInput
impl Unpin for MessageAgentInput
impl UnsafeUnpin for MessageAgentInput
impl UnwindSafe for MessageAgentInput
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