pub struct GeminiGenerateContentRequest {
pub method: HttpMethod,
pub path: PathParameters,
pub query: QueryParameters,
pub headers: RequestHeaders,
pub body: RequestBody,
}Expand description
Request descriptor for Gemini models.generateContent endpoint.
Fields§
§method: HttpMethodHTTP method.
path: PathParametersPath parameters.
query: QueryParametersQuery parameters.
headers: RequestHeadersRequest headers.
body: RequestBodyRequest body.
Trait Implementations§
Source§impl Clone for GeminiGenerateContentRequest
impl Clone for GeminiGenerateContentRequest
Source§fn clone(&self) -> GeminiGenerateContentRequest
fn clone(&self) -> GeminiGenerateContentRequest
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 GeminiGenerateContentRequest
impl Debug for GeminiGenerateContentRequest
Source§impl<'de> Deserialize<'de> for GeminiGenerateContentRequest
impl<'de> Deserialize<'de> for GeminiGenerateContentRequest
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 PartialEq for GeminiGenerateContentRequest
impl PartialEq for GeminiGenerateContentRequest
Source§fn eq(&self, other: &GeminiGenerateContentRequest) -> bool
fn eq(&self, other: &GeminiGenerateContentRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl TryFrom<&[GeminiBidiGenerateContentClientMessage]> for GeminiGenerateContentRequest
impl TryFrom<&[GeminiBidiGenerateContentClientMessage]> for GeminiGenerateContentRequest
Source§type Error = TransformError
type Error = TransformError
The type returned in the event of a conversion error.
Source§fn try_from(
value: &[GeminiBidiGenerateContentClientMessage],
) -> Result<Self, TransformError>
fn try_from( value: &[GeminiBidiGenerateContentClientMessage], ) -> Result<Self, TransformError>
Performs the conversion.
Source§impl TryFrom<&GeminiBidiGenerateContentClientMessage> for GeminiGenerateContentRequest
impl TryFrom<&GeminiBidiGenerateContentClientMessage> for GeminiGenerateContentRequest
Source§type Error = TransformError
type Error = TransformError
The type returned in the event of a conversion error.
Source§fn try_from(
value: &GeminiBidiGenerateContentClientMessage,
) -> Result<Self, TransformError>
fn try_from( value: &GeminiBidiGenerateContentClientMessage, ) -> Result<Self, TransformError>
Performs the conversion.
Source§impl TryFrom<&GeminiGenerateContentRequest> for GeminiLiveConnectRequest
impl TryFrom<&GeminiGenerateContentRequest> for GeminiLiveConnectRequest
Source§type Error = TransformError
type Error = TransformError
The type returned in the event of a conversion error.
Source§fn try_from(
value: &GeminiGenerateContentRequest,
) -> Result<Self, TransformError>
fn try_from( value: &GeminiGenerateContentRequest, ) -> Result<Self, TransformError>
Performs the conversion.
Source§impl TryFrom<&GeminiGenerateContentRequest> for GeminiStreamGenerateContentRequest
impl TryFrom<&GeminiGenerateContentRequest> for GeminiStreamGenerateContentRequest
Source§type Error = TransformError
type Error = TransformError
The type returned in the event of a conversion error.
Source§fn try_from(
value: &GeminiGenerateContentRequest,
) -> Result<Self, TransformError>
fn try_from( value: &GeminiGenerateContentRequest, ) -> Result<Self, TransformError>
Performs the conversion.
Source§impl TryFrom<&GeminiGenerateContentRequest> for Vec<GeminiBidiGenerateContentClientMessage>
impl TryFrom<&GeminiGenerateContentRequest> for Vec<GeminiBidiGenerateContentClientMessage>
Source§type Error = TransformError
type Error = TransformError
The type returned in the event of a conversion error.
Source§fn try_from(
value: &GeminiGenerateContentRequest,
) -> Result<Self, TransformError>
fn try_from( value: &GeminiGenerateContentRequest, ) -> Result<Self, TransformError>
Performs the conversion.
Source§impl TryFrom<&GeminiLiveConnectRequest> for GeminiGenerateContentRequest
impl TryFrom<&GeminiLiveConnectRequest> for GeminiGenerateContentRequest
Source§type Error = TransformError
type Error = TransformError
The type returned in the event of a conversion error.
Source§fn try_from(value: &GeminiLiveConnectRequest) -> Result<Self, TransformError>
fn try_from(value: &GeminiLiveConnectRequest) -> Result<Self, TransformError>
Performs the conversion.
Source§impl TryFrom<&GeminiStreamGenerateContentRequest> for GeminiGenerateContentRequest
impl TryFrom<&GeminiStreamGenerateContentRequest> for GeminiGenerateContentRequest
Source§type Error = TransformError
type Error = TransformError
The type returned in the event of a conversion error.
Source§fn try_from(
value: &GeminiStreamGenerateContentRequest,
) -> Result<Self, TransformError>
fn try_from( value: &GeminiStreamGenerateContentRequest, ) -> Result<Self, TransformError>
Performs the conversion.
Source§impl TryFrom<ClaudeCreateMessageRequest> for GeminiGenerateContentRequest
impl TryFrom<ClaudeCreateMessageRequest> for GeminiGenerateContentRequest
Source§type Error = TransformError
type Error = TransformError
The type returned in the event of a conversion error.
Source§fn try_from(value: ClaudeCreateMessageRequest) -> Result<Self, TransformError>
fn try_from(value: ClaudeCreateMessageRequest) -> Result<Self, TransformError>
Performs the conversion.
Source§impl TryFrom<GeminiGenerateContentRequest> for ClaudeCreateMessageRequest
impl TryFrom<GeminiGenerateContentRequest> for ClaudeCreateMessageRequest
Source§type Error = TransformError
type Error = TransformError
The type returned in the event of a conversion error.
Source§fn try_from(value: GeminiGenerateContentRequest) -> Result<Self, TransformError>
fn try_from(value: GeminiGenerateContentRequest) -> Result<Self, TransformError>
Performs the conversion.
Source§impl TryFrom<GeminiGenerateContentRequest> for GeminiLiveConnectRequest
impl TryFrom<GeminiGenerateContentRequest> for GeminiLiveConnectRequest
Source§type Error = TransformError
type Error = TransformError
The type returned in the event of a conversion error.
Source§fn try_from(value: GeminiGenerateContentRequest) -> Result<Self, TransformError>
fn try_from(value: GeminiGenerateContentRequest) -> Result<Self, TransformError>
Performs the conversion.
Source§impl TryFrom<GeminiGenerateContentRequest> for GeminiStreamGenerateContentRequest
impl TryFrom<GeminiGenerateContentRequest> for GeminiStreamGenerateContentRequest
Source§type Error = TransformError
type Error = TransformError
The type returned in the event of a conversion error.
Source§fn try_from(value: GeminiGenerateContentRequest) -> Result<Self, TransformError>
fn try_from(value: GeminiGenerateContentRequest) -> Result<Self, TransformError>
Performs the conversion.
Source§impl TryFrom<GeminiGenerateContentRequest> for OpenAiChatCompletionsRequest
impl TryFrom<GeminiGenerateContentRequest> for OpenAiChatCompletionsRequest
Source§type Error = TransformError
type Error = TransformError
The type returned in the event of a conversion error.
Source§fn try_from(value: GeminiGenerateContentRequest) -> Result<Self, TransformError>
fn try_from(value: GeminiGenerateContentRequest) -> Result<Self, TransformError>
Performs the conversion.
Source§impl TryFrom<GeminiGenerateContentRequest> for OpenAiCreateResponseRequest
impl TryFrom<GeminiGenerateContentRequest> for OpenAiCreateResponseRequest
Source§type Error = TransformError
type Error = TransformError
The type returned in the event of a conversion error.
Source§fn try_from(value: GeminiGenerateContentRequest) -> Result<Self, TransformError>
fn try_from(value: GeminiGenerateContentRequest) -> Result<Self, TransformError>
Performs the conversion.
Source§impl TryFrom<GeminiLiveConnectRequest> for GeminiGenerateContentRequest
impl TryFrom<GeminiLiveConnectRequest> for GeminiGenerateContentRequest
Source§type Error = TransformError
type Error = TransformError
The type returned in the event of a conversion error.
Source§fn try_from(value: GeminiLiveConnectRequest) -> Result<Self, TransformError>
fn try_from(value: GeminiLiveConnectRequest) -> Result<Self, TransformError>
Performs the conversion.
Source§impl TryFrom<GeminiStreamGenerateContentRequest> for GeminiGenerateContentRequest
impl TryFrom<GeminiStreamGenerateContentRequest> for GeminiGenerateContentRequest
Source§type Error = TransformError
type Error = TransformError
The type returned in the event of a conversion error.
Source§fn try_from(
value: GeminiStreamGenerateContentRequest,
) -> Result<Self, TransformError>
fn try_from( value: GeminiStreamGenerateContentRequest, ) -> Result<Self, TransformError>
Performs the conversion.
Source§impl TryFrom<OpenAiChatCompletionsRequest> for GeminiGenerateContentRequest
impl TryFrom<OpenAiChatCompletionsRequest> for GeminiGenerateContentRequest
Source§type Error = TransformError
type Error = TransformError
The type returned in the event of a conversion error.
Source§fn try_from(value: OpenAiChatCompletionsRequest) -> Result<Self, TransformError>
fn try_from(value: OpenAiChatCompletionsRequest) -> Result<Self, TransformError>
Performs the conversion.
Source§impl TryFrom<OpenAiCompactRequest> for GeminiGenerateContentRequest
impl TryFrom<OpenAiCompactRequest> for GeminiGenerateContentRequest
Source§type Error = TransformError
type Error = TransformError
The type returned in the event of a conversion error.
Source§fn try_from(value: OpenAiCompactRequest) -> Result<Self, TransformError>
fn try_from(value: OpenAiCompactRequest) -> Result<Self, TransformError>
Performs the conversion.
Source§impl TryFrom<OpenAiCreateImageEditRequest> for GeminiGenerateContentRequest
impl TryFrom<OpenAiCreateImageEditRequest> for GeminiGenerateContentRequest
Source§type Error = TransformError
type Error = TransformError
The type returned in the event of a conversion error.
Source§fn try_from(value: OpenAiCreateImageEditRequest) -> Result<Self, TransformError>
fn try_from(value: OpenAiCreateImageEditRequest) -> Result<Self, TransformError>
Performs the conversion.
Source§impl TryFrom<OpenAiCreateImageRequest> for GeminiGenerateContentRequest
impl TryFrom<OpenAiCreateImageRequest> for GeminiGenerateContentRequest
Source§type Error = TransformError
type Error = TransformError
The type returned in the event of a conversion error.
Source§fn try_from(value: OpenAiCreateImageRequest) -> Result<Self, TransformError>
fn try_from(value: OpenAiCreateImageRequest) -> Result<Self, TransformError>
Performs the conversion.
Source§impl TryFrom<OpenAiCreateResponseRequest> for GeminiGenerateContentRequest
impl TryFrom<OpenAiCreateResponseRequest> for GeminiGenerateContentRequest
Source§type Error = TransformError
type Error = TransformError
The type returned in the event of a conversion error.
Source§fn try_from(value: OpenAiCreateResponseRequest) -> Result<Self, TransformError>
fn try_from(value: OpenAiCreateResponseRequest) -> Result<Self, TransformError>
Performs the conversion.
impl StructuralPartialEq for GeminiGenerateContentRequest
Auto Trait Implementations§
impl Freeze for GeminiGenerateContentRequest
impl RefUnwindSafe for GeminiGenerateContentRequest
impl Send for GeminiGenerateContentRequest
impl Sync for GeminiGenerateContentRequest
impl Unpin for GeminiGenerateContentRequest
impl UnsafeUnpin for GeminiGenerateContentRequest
impl UnwindSafe for GeminiGenerateContentRequest
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