#[non_exhaustive]pub enum UserContentParts {
Text(String),
Parts(Vec<UserContentPart>),
}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.
Text(String)
Parts(Vec<UserContentPart>)
Trait Implementations§
Source§impl Clone for UserContentParts
impl Clone for UserContentParts
Source§impl Debug for UserContentParts
impl Debug for UserContentParts
Source§impl DeclaredFields for UserContentParts
impl DeclaredFields for UserContentParts
fn into_declared(self) -> Self
Source§impl<'de> Deserialize<'de> for UserContentParts
impl<'de> Deserialize<'de> for UserContentParts
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 UserContentParts
impl PartialEq for UserContentParts
Source§impl Serialize for UserContentParts
impl Serialize for UserContentParts
impl StructuralPartialEq for UserContentParts
Auto Trait Implementations§
impl Freeze for UserContentParts
impl RefUnwindSafe for UserContentParts
impl Send for UserContentParts
impl Sync for UserContentParts
impl Unpin for UserContentParts
impl UnsafeUnpin for UserContentParts
impl UnwindSafe for UserContentParts
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