#[non_exhaustive]pub struct GenerateContentResponseBody {Show 14 fields
pub input_transformations: Option<Option<Vec<InputTransformation>>>,
pub type_: GenerateContentResponseBodyType,
pub id: String,
pub container: Option<Option<ResponseContainer>>,
pub content: Vec<ResponseContentBlock>,
pub context_management: Option<Option<ContextManagementResponse>>,
pub diagnostics: Option<Option<DiagnosticsResponse>>,
pub model: String,
pub role: ResponseRole,
pub stop_details: Option<Option<RefusalStopDetails>>,
pub stop_reason: StopReason,
pub stop_sequence: Option<Option<String>>,
pub usage: Usage,
pub rest: Rest,
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.input_transformations: Option<Option<Vec<InputTransformation>>>§type_: GenerateContentResponseBodyType§id: String§container: Option<Option<ResponseContainer>>§content: Vec<ResponseContentBlock>§context_management: Option<Option<ContextManagementResponse>>§diagnostics: Option<Option<DiagnosticsResponse>>§model: String§role: ResponseRole§stop_details: Option<Option<RefusalStopDetails>>§stop_reason: StopReason§stop_sequence: Option<Option<String>>§usage: Usage§rest: RestImplementations§
Source§impl GenerateContentResponseBody
impl GenerateContentResponseBody
Sourcepub fn builder(
type_: GenerateContentResponseBodyType,
id: String,
content: Vec<ResponseContentBlock>,
model: String,
role: ResponseRole,
stop_reason: StopReason,
usage: Usage,
) -> GenerateContentResponseBodyBuilder
pub fn builder( type_: GenerateContentResponseBodyType, id: String, content: Vec<ResponseContentBlock>, model: String, role: ResponseRole, stop_reason: StopReason, usage: Usage, ) -> GenerateContentResponseBodyBuilder
Start a builder by supplying the required fields in declaration order.
Trait Implementations§
Source§impl Clone for GenerateContentResponseBody
impl Clone for GenerateContentResponseBody
Source§impl CompleteResponse for GenerateContentResponseBody
impl CompleteResponse for GenerateContentResponseBody
type Event = StreamEvent
fn events( self, _: IdNamespace, limits: EventLimits, ) -> Result<Converted<Vec<Self::Event>>, TransformError>
Source§impl Debug for GenerateContentResponseBody
impl Debug for GenerateContentResponseBody
Source§impl DeclaredFields for GenerateContentResponseBody
impl DeclaredFields for GenerateContentResponseBody
fn into_declared(self) -> Self
Source§impl<'de> Deserialize<'de> for GenerateContentResponseBody
impl<'de> Deserialize<'de> for GenerateContentResponseBody
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
impl Eq for GenerateContentResponseBody
impl StructuralPartialEq for GenerateContentResponseBody
Auto Trait Implementations§
impl Freeze for GenerateContentResponseBody
impl RefUnwindSafe for GenerateContentResponseBody
impl Send for GenerateContentResponseBody
impl Sync for GenerateContentResponseBody
impl Unpin for GenerateContentResponseBody
impl UnsafeUnpin for GenerateContentResponseBody
impl UnwindSafe for GenerateContentResponseBody
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