pub struct MessageSendConfiguration {
pub blocking: Option<bool>,
pub history_length: Option<i32>,
pub accepted_output_modes: Vec<String>,
pub push_notification_config: Option<PushNotificationConfig>,
}Expand description
Defines configuration options for a message/send or message/stream request.
Fields§
§blocking: Option<bool>If true, the client will wait for the task to complete. The server may reject this if the task is long-running.
history_length: Option<i32>The number of most recent messages from the task’s history to retrieve in the response.
accepted_output_modes: Vec<String>A list of output MIME types the client is prepared to accept in the response.
push_notification_config: Option<PushNotificationConfig>Configuration for the agent to send push notifications for updates after the initial response.
Trait Implementations§
Source§impl Clone for MessageSendConfiguration
impl Clone for MessageSendConfiguration
Source§fn clone(&self) -> MessageSendConfiguration
fn clone(&self) -> MessageSendConfiguration
Returns a duplicate of the value. Read more
1.0.0 · 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 MessageSendConfiguration
impl Debug for MessageSendConfiguration
Source§impl Default for MessageSendConfiguration
impl Default for MessageSendConfiguration
Source§fn default() -> MessageSendConfiguration
fn default() -> MessageSendConfiguration
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MessageSendConfiguration
impl<'de> Deserialize<'de> for MessageSendConfiguration
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
Auto Trait Implementations§
impl Freeze for MessageSendConfiguration
impl RefUnwindSafe for MessageSendConfiguration
impl Send for MessageSendConfiguration
impl Sync for MessageSendConfiguration
impl Unpin for MessageSendConfiguration
impl UnwindSafe for MessageSendConfiguration
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