pub enum MetadataSendModeTrue {
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 MetadataSendModeTrue
impl Clone for MetadataSendModeTrue
Source§fn clone(&self) -> MetadataSendModeTrue
fn clone(&self) -> MetadataSendModeTrue
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for MetadataSendModeTrue
impl Debug for MetadataSendModeTrue
Source§impl Default for MetadataSendModeTrue
impl Default for MetadataSendModeTrue
Source§fn default() -> MetadataSendModeTrue
fn default() -> MetadataSendModeTrue
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MetadataSendModeTrue
impl<'de> Deserialize<'de> for MetadataSendModeTrue
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 MetadataSendModeTrue
impl Hash for MetadataSendModeTrue
Source§impl Ord for MetadataSendModeTrue
impl Ord for MetadataSendModeTrue
Source§fn cmp(&self, other: &MetadataSendModeTrue) -> Ordering
fn cmp(&self, other: &MetadataSendModeTrue) -> 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 MetadataSendModeTrue
impl PartialEq for MetadataSendModeTrue
Source§impl PartialOrd for MetadataSendModeTrue
impl PartialOrd for MetadataSendModeTrue
Source§impl Serialize for MetadataSendModeTrue
impl Serialize for MetadataSendModeTrue
impl Copy for MetadataSendModeTrue
impl Eq for MetadataSendModeTrue
impl StructuralPartialEq for MetadataSendModeTrue
Auto Trait Implementations§
impl Freeze for MetadataSendModeTrue
impl RefUnwindSafe for MetadataSendModeTrue
impl Send for MetadataSendModeTrue
impl Sync for MetadataSendModeTrue
impl Unpin for MetadataSendModeTrue
impl UnwindSafe for MetadataSendModeTrue
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