pub enum MessageContentParam {
String(String),
Blocks(Vec<ContentBlockParam>),
}Expand description
Message content parameter
Can be either a simple string or an array of content blocks.
Variants§
Trait Implementations§
Source§impl Clone for MessageContentParam
impl Clone for MessageContentParam
Source§fn clone(&self) -> MessageContentParam
fn clone(&self) -> MessageContentParam
Returns a duplicate of the value. Read more
1.0.0 · 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 MessageContentParam
impl Debug for MessageContentParam
Source§impl<'de> Deserialize<'de> for MessageContentParam
impl<'de> Deserialize<'de> for MessageContentParam
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 MessageContentParam
impl From<&str> for MessageContentParam
Source§impl From<String> for MessageContentParam
impl From<String> for MessageContentParam
Source§impl PartialEq for MessageContentParam
impl PartialEq for MessageContentParam
Source§impl Serialize for MessageContentParam
impl Serialize for MessageContentParam
impl Eq for MessageContentParam
impl StructuralPartialEq for MessageContentParam
Auto Trait Implementations§
impl Freeze for MessageContentParam
impl RefUnwindSafe for MessageContentParam
impl Send for MessageContentParam
impl Sync for MessageContentParam
impl Unpin for MessageContentParam
impl UnwindSafe for MessageContentParam
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