pub enum ProviderModality {
Text,
Image,
Audio,
Video,
}Expand description
Enumerates the finite provider modality cases. Serialized names are part of the SDK contract; update fixtures when variants change.
Variants§
Text
Use this variant when the contract needs to represent text; selecting it has no side effect by itself.
Image
Use this variant when the contract needs to represent image; selecting it has no side effect by itself.
Audio
Use this variant when the contract needs to represent audio; selecting it has no side effect by itself.
Video
Use this variant when the contract needs to represent video; selecting it has no side effect by itself.
Trait Implementations§
Source§impl Clone for ProviderModality
impl Clone for ProviderModality
Source§fn clone(&self) -> ProviderModality
fn clone(&self) -> ProviderModality
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ProviderModality
impl Debug for ProviderModality
Source§impl<'de> Deserialize<'de> for ProviderModality
impl<'de> Deserialize<'de> for ProviderModality
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
impl Eq for ProviderModality
Source§impl PartialEq for ProviderModality
impl PartialEq for ProviderModality
Source§fn eq(&self, other: &ProviderModality) -> bool
fn eq(&self, other: &ProviderModality) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ProviderModality
impl Serialize for ProviderModality
impl StructuralPartialEq for ProviderModality
Auto Trait Implementations§
impl Freeze for ProviderModality
impl RefUnwindSafe for ProviderModality
impl Send for ProviderModality
impl Sync for ProviderModality
impl Unpin for ProviderModality
impl UnsafeUnpin for ProviderModality
impl UnwindSafe for ProviderModality
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