pub enum MetadataSendMode {
Off,
Variable,
Destructured,
}Expand description
This determines whether metadata is sent in requests to the custom provider. - off will not send any metadata. payload will look like { messages } - variable will send assistant.metadata as a variable on the payload. payload will look like { messages, metadata } - destructured will send assistant.metadata fields directly on the payload. payload will look like { messages, ...metadata } Further, variable and destructured will send call, phoneNumber, and customer objects in the payload. Default is variable.
Variants§
Trait Implementations§
Source§impl Clone for MetadataSendMode
impl Clone for MetadataSendMode
Source§fn clone(&self) -> MetadataSendMode
fn clone(&self) -> MetadataSendMode
Returns a copy 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 MetadataSendMode
impl Debug for MetadataSendMode
Source§impl Default for MetadataSendMode
impl Default for MetadataSendMode
Source§fn default() -> MetadataSendMode
fn default() -> MetadataSendMode
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MetadataSendMode
impl<'de> Deserialize<'de> for MetadataSendMode
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 Hash for MetadataSendMode
impl Hash for MetadataSendMode
Source§impl Ord for MetadataSendMode
impl Ord for MetadataSendMode
Source§fn cmp(&self, other: &MetadataSendMode) -> Ordering
fn cmp(&self, other: &MetadataSendMode) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for MetadataSendMode
impl PartialEq for MetadataSendMode
Source§impl PartialOrd for MetadataSendMode
impl PartialOrd for MetadataSendMode
Source§impl Serialize for MetadataSendMode
impl Serialize for MetadataSendMode
impl Copy for MetadataSendMode
impl Eq for MetadataSendMode
impl StructuralPartialEq for MetadataSendMode
Auto Trait Implementations§
impl Freeze for MetadataSendMode
impl RefUnwindSafe for MetadataSendMode
impl Send for MetadataSendMode
impl Sync for MetadataSendMode
impl Unpin for MetadataSendMode
impl UnwindSafe for MetadataSendMode
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> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.