pub struct MessageStart {
pub id: String,
pub model: String,
pub role: MessageRole,
pub content: Vec<ContentBlockStart>,
}Expand description
Initial message information in a streaming response.
Fields§
§id: StringUnique identifier for this message
model: StringThe model generating the response
role: MessageRoleThe role of the message sender (always Assistant for responses)
content: Vec<ContentBlockStart>Initial content blocks in the response
Trait Implementations§
Source§impl Clone for MessageStart
impl Clone for MessageStart
Source§fn clone(&self) -> MessageStart
fn clone(&self) -> MessageStart
Returns a copy 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 MessageStart
impl Debug for MessageStart
Source§impl<'de> Deserialize<'de> for MessageStart
impl<'de> Deserialize<'de> for MessageStart
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 MessageStart
impl PartialEq for MessageStart
impl Eq for MessageStart
impl StructuralPartialEq for MessageStart
Auto Trait Implementations§
impl Freeze for MessageStart
impl RefUnwindSafe for MessageStart
impl Send for MessageStart
impl Sync for MessageStart
impl Unpin for MessageStart
impl UnwindSafe for MessageStart
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.