pub struct MessageCommand {
pub text: String,
pub context_id: Option<String>,
pub task_id: Option<String>,
pub history_length: Option<i32>,
pub accepted_output_modes: Vec<String>,
pub return_immediately: bool,
}Fields§
§text: StringText payload to send as the user message.
context_id: Option<String>Optional context identifier to continue an existing conversation.
task_id: Option<String>Optional task identifier to continue an existing task.
history_length: Option<i32>Ask the server to include up to this many history items in task responses.
accepted_output_modes: Vec<String>Accepted output mode, for example text/plain or application/json.
return_immediately: boolAsk the server to return immediately when it supports queued work.
Trait Implementations§
Source§impl Args for MessageCommand
impl Args for MessageCommand
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Append to
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Clone for MessageCommand
impl Clone for MessageCommand
Source§fn clone(&self) -> MessageCommand
fn clone(&self) -> MessageCommand
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 MessageCommand
impl Debug for MessageCommand
Source§impl FromArgMatches for MessageCommand
impl FromArgMatches for MessageCommand
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
Assign values from
ArgMatches to self.Source§impl PartialEq for MessageCommand
impl PartialEq for MessageCommand
Source§fn eq(&self, other: &MessageCommand) -> bool
fn eq(&self, other: &MessageCommand) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for MessageCommand
impl StructuralPartialEq for MessageCommand
Auto Trait Implementations§
impl Freeze for MessageCommand
impl RefUnwindSafe for MessageCommand
impl Send for MessageCommand
impl Sync for MessageCommand
impl Unpin for MessageCommand
impl UnsafeUnpin for MessageCommand
impl UnwindSafe for MessageCommand
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.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request