pub struct AnthropicMessageStart {
pub id: String,
pub kind: String,
pub role: String,
pub model: String,
pub content: Vec<AnthropicContentBlock>,
pub stop_reason: Option<String>,
pub stop_sequence: Option<String>,
pub usage: AnthropicStreamUsage,
}Expand description
Anthropic 消息开始事件
Fields§
§id: String§kind: String§role: String§model: String§content: Vec<AnthropicContentBlock>§stop_reason: Option<String>§stop_sequence: Option<String>§usage: AnthropicStreamUsageTrait Implementations§
Source§impl Clone for AnthropicMessageStart
impl Clone for AnthropicMessageStart
Source§fn clone(&self) -> AnthropicMessageStart
fn clone(&self) -> AnthropicMessageStart
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 AnthropicMessageStart
impl Debug for AnthropicMessageStart
Source§impl<'de> Deserialize<'de> for AnthropicMessageStart
impl<'de> Deserialize<'de> for AnthropicMessageStart
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
Auto Trait Implementations§
impl Freeze for AnthropicMessageStart
impl RefUnwindSafe for AnthropicMessageStart
impl Send for AnthropicMessageStart
impl Sync for AnthropicMessageStart
impl Unpin for AnthropicMessageStart
impl UnsafeUnpin for AnthropicMessageStart
impl UnwindSafe for AnthropicMessageStart
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