pub enum GeminiStreamGenerateContentResponse {
Success {
stats_code: StatusCode,
headers: GeminiResponseHeaders,
},
Error {
stats_code: StatusCode,
headers: GeminiResponseHeaders,
body: GeminiApiErrorResponse,
},
}Expand description
Full HTTP response envelope for Gemini models.streamGenerateContent.
The actual stream chunks (GeminiNdjsonChunk or GeminiSseChunk) are
processed one at a time by the transport layer — not collected here.
This type only captures the initial HTTP response metadata and error case.
Variants§
Trait Implementations§
Source§impl Clone for GeminiStreamGenerateContentResponse
impl Clone for GeminiStreamGenerateContentResponse
Source§fn clone(&self) -> GeminiStreamGenerateContentResponse
fn clone(&self) -> GeminiStreamGenerateContentResponse
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<'de> Deserialize<'de> for GeminiStreamGenerateContentResponse
impl<'de> Deserialize<'de> for GeminiStreamGenerateContentResponse
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 GeminiStreamGenerateContentResponse
impl PartialEq for GeminiStreamGenerateContentResponse
Source§fn eq(&self, other: &GeminiStreamGenerateContentResponse) -> bool
fn eq(&self, other: &GeminiStreamGenerateContentResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl TryFrom<GeminiGenerateContentResponse> for GeminiStreamGenerateContentResponse
impl TryFrom<GeminiGenerateContentResponse> for GeminiStreamGenerateContentResponse
Source§type Error = TransformError
type Error = TransformError
The type returned in the event of a conversion error.
Source§fn try_from(
value: GeminiGenerateContentResponse,
) -> Result<Self, TransformError>
fn try_from( value: GeminiGenerateContentResponse, ) -> Result<Self, TransformError>
Performs the conversion.
Source§impl TryFrom<GeminiStreamGenerateContentResponse> for Vec<ClaudeStreamEvent>
impl TryFrom<GeminiStreamGenerateContentResponse> for Vec<ClaudeStreamEvent>
Source§type Error = TransformError
type Error = TransformError
The type returned in the event of a conversion error.
Source§fn try_from(
value: GeminiStreamGenerateContentResponse,
) -> Result<Self, TransformError>
fn try_from( value: GeminiStreamGenerateContentResponse, ) -> Result<Self, TransformError>
Performs the conversion.
Source§impl TryFrom<GeminiStreamGenerateContentResponse> for Vec<GeminiLiveMessageResponse>
impl TryFrom<GeminiStreamGenerateContentResponse> for Vec<GeminiLiveMessageResponse>
Source§type Error = TransformError
type Error = TransformError
The type returned in the event of a conversion error.
Source§fn try_from(
value: GeminiStreamGenerateContentResponse,
) -> Result<Self, TransformError>
fn try_from( value: GeminiStreamGenerateContentResponse, ) -> Result<Self, TransformError>
Performs the conversion.
Source§impl TryFrom<Vec<GeminiLiveMessageResponse>> for GeminiStreamGenerateContentResponse
impl TryFrom<Vec<GeminiLiveMessageResponse>> for GeminiStreamGenerateContentResponse
Source§type Error = TransformError
type Error = TransformError
The type returned in the event of a conversion error.
Source§fn try_from(
value: Vec<GeminiLiveMessageResponse>,
) -> Result<Self, TransformError>
fn try_from( value: Vec<GeminiLiveMessageResponse>, ) -> Result<Self, TransformError>
Performs the conversion.
impl StructuralPartialEq for GeminiStreamGenerateContentResponse
Auto Trait Implementations§
impl Freeze for GeminiStreamGenerateContentResponse
impl RefUnwindSafe for GeminiStreamGenerateContentResponse
impl Send for GeminiStreamGenerateContentResponse
impl Sync for GeminiStreamGenerateContentResponse
impl Unpin for GeminiStreamGenerateContentResponse
impl UnsafeUnpin for GeminiStreamGenerateContentResponse
impl UnwindSafe for GeminiStreamGenerateContentResponse
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