pub struct Response {
pub id: String,
pub model: String,
pub content: Vec<Content>,
pub stop_reason: Option<StopReason>,
pub usage: Usage,
}Fields§
§id: String§model: String§content: Vec<Content>§stop_reason: Option<StopReason>§usage: UsageTrait Implementations§
Source§impl From<&Response> for AnthropicResponse
impl From<&Response> for AnthropicResponse
Source§impl From<&Response> for ChatCompletionResponse
impl From<&Response> for ChatCompletionResponse
Source§impl From<&Response> for GeminiResponse
impl From<&Response> for GeminiResponse
Source§impl From<AnthropicResponse> for Response
impl From<AnthropicResponse> for Response
Source§fn from(resp: AnthropicResponse) -> Self
fn from(resp: AnthropicResponse) -> Self
Converts to this type from the input type.
Source§impl From<ChatCompletionResponse> for Response
impl From<ChatCompletionResponse> for Response
Source§fn from(resp: ChatCompletionResponse) -> Self
fn from(resp: ChatCompletionResponse) -> Self
Converts to this type from the input type.
Source§impl From<GeminiResponse> for Response
impl From<GeminiResponse> for Response
Source§fn from(resp: GeminiResponse) -> Self
fn from(resp: GeminiResponse) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Response
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnsafeUnpin for Response
impl UnwindSafe for Response
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