#[non_exhaustive]pub enum UserContentPart {
Text(TextPart),
Image(ImagePart),
InputAudio(InputAudioPart),
File(FilePart),
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl Clone for UserContentPart
impl Clone for UserContentPart
Source§impl Debug for UserContentPart
impl Debug for UserContentPart
Source§impl DeclaredFields for UserContentPart
impl DeclaredFields for UserContentPart
fn into_declared(self) -> Self
Source§impl<'de> Deserialize<'de> for UserContentPart
impl<'de> Deserialize<'de> for UserContentPart
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 UserContentPart
impl PartialEq for UserContentPart
Source§impl Serialize for UserContentPart
impl Serialize for UserContentPart
impl StructuralPartialEq for UserContentPart
Auto Trait Implementations§
impl Freeze for UserContentPart
impl RefUnwindSafe for UserContentPart
impl Send for UserContentPart
impl Sync for UserContentPart
impl Unpin for UserContentPart
impl UnsafeUnpin for UserContentPart
impl UnwindSafe for UserContentPart
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