pub struct GeminiEmbedContentRequest {
pub method: HttpMethod,
pub path: PathParameters,
pub query: QueryParameters,
pub headers: RequestHeaders,
pub body: RequestBody,
}Expand description
Request descriptor for Gemini models.embedContent endpoint.
Fields§
§method: HttpMethodHTTP method.
path: PathParametersPath parameters.
query: QueryParametersQuery parameters.
headers: RequestHeadersRequest headers.
body: RequestBodyRequest body.
Trait Implementations§
Source§impl Clone for GeminiEmbedContentRequest
impl Clone for GeminiEmbedContentRequest
Source§fn clone(&self) -> GeminiEmbedContentRequest
fn clone(&self) -> GeminiEmbedContentRequest
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 GeminiEmbedContentRequest
impl Debug for GeminiEmbedContentRequest
Source§impl Default for GeminiEmbedContentRequest
impl Default for GeminiEmbedContentRequest
Source§impl<'de> Deserialize<'de> for GeminiEmbedContentRequest
impl<'de> Deserialize<'de> for GeminiEmbedContentRequest
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<GeminiEmbedContentRequest> for OpenAiEmbeddingsRequest
impl TryFrom<GeminiEmbedContentRequest> for OpenAiEmbeddingsRequest
Source§type Error = TransformError
type Error = TransformError
The type returned in the event of a conversion error.
Source§fn try_from(value: GeminiEmbedContentRequest) -> Result<Self, TransformError>
fn try_from(value: GeminiEmbedContentRequest) -> Result<Self, TransformError>
Performs the conversion.
Source§impl TryFrom<OpenAiEmbeddingsRequest> for GeminiEmbedContentRequest
impl TryFrom<OpenAiEmbeddingsRequest> for GeminiEmbedContentRequest
Source§type Error = TransformError
type Error = TransformError
The type returned in the event of a conversion error.
Source§fn try_from(value: OpenAiEmbeddingsRequest) -> Result<Self, TransformError>
fn try_from(value: OpenAiEmbeddingsRequest) -> Result<Self, TransformError>
Performs the conversion.
impl StructuralPartialEq for GeminiEmbedContentRequest
Auto Trait Implementations§
impl Freeze for GeminiEmbedContentRequest
impl RefUnwindSafe for GeminiEmbedContentRequest
impl Send for GeminiEmbedContentRequest
impl Sync for GeminiEmbedContentRequest
impl Unpin for GeminiEmbedContentRequest
impl UnsafeUnpin for GeminiEmbedContentRequest
impl UnwindSafe for GeminiEmbedContentRequest
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