pub enum GeminiEmbedContentResponse {
Success {
stats_code: StatusCode,
headers: GeminiResponseHeaders,
body: ResponseBody,
},
Error {
stats_code: StatusCode,
headers: GeminiResponseHeaders,
body: GeminiApiErrorResponse,
},
}Expand description
Full HTTP response for Gemini models.embedContent endpoint.
Variants§
Success
Fields
§
stats_code: StatusCodeHTTP status code returned by server (should be 200 OK).
§
headers: GeminiResponseHeadersResponse headers.
§
body: ResponseBodySuccessful body.
Error
Fields
§
stats_code: StatusCodeHTTP status code returned by server (typically non-2xx).
§
headers: GeminiResponseHeadersResponse headers.
§
body: GeminiApiErrorResponseError body.
Trait Implementations§
Source§impl Clone for GeminiEmbedContentResponse
impl Clone for GeminiEmbedContentResponse
Source§fn clone(&self) -> GeminiEmbedContentResponse
fn clone(&self) -> GeminiEmbedContentResponse
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 GeminiEmbedContentResponse
impl Debug for GeminiEmbedContentResponse
Source§impl<'de> Deserialize<'de> for GeminiEmbedContentResponse
impl<'de> Deserialize<'de> for GeminiEmbedContentResponse
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 TryFrom<GeminiEmbedContentResponse> for OpenAiEmbeddingsResponse
impl TryFrom<GeminiEmbedContentResponse> for OpenAiEmbeddingsResponse
Source§type Error = TransformError
type Error = TransformError
The type returned in the event of a conversion error.
Source§fn try_from(value: GeminiEmbedContentResponse) -> Result<Self, TransformError>
fn try_from(value: GeminiEmbedContentResponse) -> Result<Self, TransformError>
Performs the conversion.
Source§impl TryFrom<OpenAiEmbeddingsResponse> for GeminiEmbedContentResponse
impl TryFrom<OpenAiEmbeddingsResponse> for GeminiEmbedContentResponse
Source§type Error = TransformError
type Error = TransformError
The type returned in the event of a conversion error.
Source§fn try_from(value: OpenAiEmbeddingsResponse) -> Result<Self, TransformError>
fn try_from(value: OpenAiEmbeddingsResponse) -> Result<Self, TransformError>
Performs the conversion.
impl StructuralPartialEq for GeminiEmbedContentResponse
Auto Trait Implementations§
impl Freeze for GeminiEmbedContentResponse
impl RefUnwindSafe for GeminiEmbedContentResponse
impl Send for GeminiEmbedContentResponse
impl Sync for GeminiEmbedContentResponse
impl Unpin for GeminiEmbedContentResponse
impl UnsafeUnpin for GeminiEmbedContentResponse
impl UnwindSafe for GeminiEmbedContentResponse
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