pub struct AnthropicMessageResponse {
pub id: String,
pub object_type: String,
pub role: String,
pub content: Vec<AnthropicResponseContentBlock>,
pub model: String,
pub stop_reason: Option<AnthropicStopReason>,
pub stop_sequence: Option<String>,
pub usage: AnthropicUsage,
}Expand description
Response body for POST /v1/messages (non-streaming).
Fields§
§id: String§object_type: String§role: String§content: Vec<AnthropicResponseContentBlock>§model: String§stop_reason: Option<AnthropicStopReason>§stop_sequence: Option<String>§usage: AnthropicUsageTrait Implementations§
Source§impl Clone for AnthropicMessageResponse
impl Clone for AnthropicMessageResponse
Source§fn clone(&self) -> AnthropicMessageResponse
fn clone(&self) -> AnthropicMessageResponse
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 AnthropicMessageResponse
impl Debug for AnthropicMessageResponse
Source§impl<'de> Deserialize<'de> for AnthropicMessageResponse
impl<'de> Deserialize<'de> for AnthropicMessageResponse
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 AnthropicMessageResponse
impl RefUnwindSafe for AnthropicMessageResponse
impl Send for AnthropicMessageResponse
impl Sync for AnthropicMessageResponse
impl Unpin for AnthropicMessageResponse
impl UnsafeUnpin for AnthropicMessageResponse
impl UnwindSafe for AnthropicMessageResponse
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