pub struct MessageCommand {
pub text: Option<String>,
pub text_parts: Vec<String>,
pub file_parts: Vec<String>,
pub data_parts: Vec<String>,
pub media_types: Vec<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,
pub stream: bool,
}Fields§
§text: Option<String>Text payload to send as the user message. Shorthand for a single –text-part when no other part flags are given; mutually exclusive with –text-part/–file-part/–data-part.
text_parts: Vec<String>Add a text part. Repeatable and order-preserving alongside –file-part/–data-part.
file_parts: Vec<String>Add a file part. A local path is inlined as bytes; a URL is carried by reference and never fetched by the CLI. Repeatable.
data_parts: Vec<String>Add a structured JSON data part, read from a file path, parsed from an inline JSON string, or “-” to read JSON from stdin. Repeatable.
media_types: Vec<String>Media type for the part flag immediately preceding it (–file-part or –data-part). Usage error if it follows no part flag.
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.
stream: boolUse the streaming send operation and print each event as it arrives.
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
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl Clone for MessageCommand
impl Clone for MessageCommand
Source§impl Debug for MessageCommand
impl Debug for MessageCommand
impl Eq 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>
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>
ArgMatches to self.Source§impl PartialEq for MessageCommand
impl PartialEq 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
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
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>
T in a tonic::Request