pub struct AnthropicResponse {
pub id: String,
pub content: Vec<AnthropicContentBlock>,
pub model: String,
pub stop_reason: Option<String>,
pub usage: Option<AnthropicUsage>,
}Expand description
Anthropic Messages API response
Fields§
§id: String§content: Vec<AnthropicContentBlock>§model: String§stop_reason: Option<String>§usage: Option<AnthropicUsage>Trait Implementations§
Source§impl Clone for AnthropicResponse
impl Clone for AnthropicResponse
Source§fn clone(&self) -> AnthropicResponse
fn clone(&self) -> AnthropicResponse
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 AnthropicResponse
impl Debug for AnthropicResponse
Source§impl<'de> Deserialize<'de> for AnthropicResponse
impl<'de> Deserialize<'de> for AnthropicResponse
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 AnthropicResponse
impl RefUnwindSafe for AnthropicResponse
impl Send for AnthropicResponse
impl Sync for AnthropicResponse
impl Unpin for AnthropicResponse
impl UnsafeUnpin for AnthropicResponse
impl UnwindSafe for AnthropicResponse
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