pub enum EasyContent {
Text(String),
Parts(Vec<InputContent>),
}Expand description
EasyInputMessage.content: a plain string or a list of content parts.
Variants§
Text(String)
Parts(Vec<InputContent>)
Trait Implementations§
Source§impl Clone for EasyContent
impl Clone for EasyContent
Source§fn clone(&self) -> EasyContent
fn clone(&self) -> EasyContent
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 EasyContent
impl Debug for EasyContent
Source§impl<'de> Deserialize<'de> for EasyContent
impl<'de> Deserialize<'de> for EasyContent
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 From<&str> for EasyContent
impl From<&str> for EasyContent
Source§impl From<String> for EasyContent
impl From<String> for EasyContent
Source§impl From<Vec<InputContent>> for EasyContent
impl From<Vec<InputContent>> for EasyContent
Source§fn from(parts: Vec<InputContent>) -> Self
fn from(parts: Vec<InputContent>) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for EasyContent
impl RefUnwindSafe for EasyContent
impl Send for EasyContent
impl Sync for EasyContent
impl Unpin for EasyContent
impl UnsafeUnpin for EasyContent
impl UnwindSafe for EasyContent
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