#[non_exhaustive]pub struct ConversationCompactInput {
pub org: Option<String>,
pub namespace: Option<String>,
pub agent: Option<String>,
pub thread_id: String,
pub keep_recent: Option<Integer>,
pub min_to_compact: Option<Integer>,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.org: Option<String>§namespace: Option<String>§agent: Option<String>§thread_id: String§keep_recent: Option<Integer>§min_to_compact: Option<Integer>Implementations§
Source§impl ConversationCompactInput
impl ConversationCompactInput
pub fn new(thread_id: impl Into<String>) -> Self
pub fn org(self, org: impl Into<String>) -> Self
pub fn namespace(self, namespace: impl Into<String>) -> Self
pub fn agent(self, agent: impl Into<String>) -> Self
pub fn keep_recent(self, keep_recent: impl Into<Integer>) -> Self
pub fn min_to_compact(self, min_to_compact: impl Into<Integer>) -> Self
pub async fn send( self, client: &Client, options: CallOptions, ) -> Result<CallResult<ConversationCompactOutput>, CallFailure>
Trait Implementations§
Source§impl Clone for ConversationCompactInput
impl Clone for ConversationCompactInput
Source§impl Debug for ConversationCompactInput
impl Debug for ConversationCompactInput
Source§impl<'de> Deserialize<'de> for ConversationCompactInput
impl<'de> Deserialize<'de> for ConversationCompactInput
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 ConversationCompactInput
impl PartialEq for ConversationCompactInput
Source§impl Serialize for ConversationCompactInput
impl Serialize for ConversationCompactInput
impl StructuralPartialEq for ConversationCompactInput
Auto Trait Implementations§
impl Forget for ConversationCompactInput
impl Freeze for ConversationCompactInput
impl Move for ConversationCompactInput
impl RefUnwindSafe for ConversationCompactInput
impl Send for ConversationCompactInput
impl Sync for ConversationCompactInput
impl Unpin for ConversationCompactInput
impl UnsafeUnpin for ConversationCompactInput
impl UnwindSafe for ConversationCompactInput
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