pub enum MessageContentInput {
Text(String),
Blocks(Vec<Value>),
}Expand description
Message content on create: a plain string or a list of content blocks
(kept as serde_json::Value for the polymorphic block shapes).
Variants§
Trait Implementations§
Source§impl Clone for MessageContentInput
impl Clone for MessageContentInput
Source§fn clone(&self) -> MessageContentInput
fn clone(&self) -> MessageContentInput
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 MessageContentInput
impl Debug for MessageContentInput
Source§impl From<&str> for MessageContentInput
impl From<&str> for MessageContentInput
Source§impl From<String> for MessageContentInput
impl From<String> for MessageContentInput
Auto Trait Implementations§
impl Freeze for MessageContentInput
impl RefUnwindSafe for MessageContentInput
impl Send for MessageContentInput
impl Sync for MessageContentInput
impl Unpin for MessageContentInput
impl UnsafeUnpin for MessageContentInput
impl UnwindSafe for MessageContentInput
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