pub enum CanonicalModality {
Text,
Image,
Audio,
Video,
Embedding,
Realtime,
}Expand description
CanonicalModality
JSON schema
{
"type": "string",
"enum": [
"text",
"image",
"audio",
"video",
"embedding",
"realtime"
]
}Variants§
Trait Implementations§
Source§impl Clone for CanonicalModality
impl Clone for CanonicalModality
Source§fn clone(&self) -> CanonicalModality
fn clone(&self) -> CanonicalModality
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 moreimpl Copy for CanonicalModality
Source§impl Debug for CanonicalModality
impl Debug for CanonicalModality
Source§impl<'de> Deserialize<'de> for CanonicalModality
impl<'de> Deserialize<'de> for CanonicalModality
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 Display for CanonicalModality
impl Display for CanonicalModality
impl Eq for CanonicalModality
Source§impl FromStr for CanonicalModality
impl FromStr for CanonicalModality
Source§impl Hash for CanonicalModality
impl Hash for CanonicalModality
Source§impl Ord for CanonicalModality
impl Ord for CanonicalModality
Source§fn cmp(&self, other: &CanonicalModality) -> Ordering
fn cmp(&self, other: &CanonicalModality) -> Ordering
1.21.0 (const: unstable) · 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 CanonicalModality
impl PartialEq for CanonicalModality
Source§fn eq(&self, other: &CanonicalModality) -> bool
fn eq(&self, other: &CanonicalModality) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialOrd for CanonicalModality
impl PartialOrd for CanonicalModality
Source§impl Serialize for CanonicalModality
impl Serialize for CanonicalModality
impl StructuralPartialEq for CanonicalModality
Source§impl TryFrom<&String> for CanonicalModality
impl TryFrom<&String> for CanonicalModality
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<&str> for CanonicalModality
impl TryFrom<&str> for CanonicalModality
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§impl TryFrom<String> for CanonicalModality
impl TryFrom<String> for CanonicalModality
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Auto Trait Implementations§
impl Freeze for CanonicalModality
impl RefUnwindSafe for CanonicalModality
impl Send for CanonicalModality
impl Sync for CanonicalModality
impl Unpin for CanonicalModality
impl UnsafeUnpin for CanonicalModality
impl UnwindSafe for CanonicalModality
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