#[non_exhaustive]pub struct GenerateContentResponseBody {
pub id: String,
pub choices: Vec<Choice>,
pub created: i64,
pub model: String,
pub object: CompletionObject,
pub service_tier: Option<Option<ResponseServiceTier>>,
pub system_fingerprint: Option<String>,
pub usage: Option<Usage>,
pub moderation: Option<Option<ModerationResponse>>,
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.id: String§choices: Vec<Choice>§created: i64§model: String§object: CompletionObject§service_tier: Option<Option<ResponseServiceTier>>§system_fingerprint: Option<String>§usage: Option<Usage>§moderation: Option<Option<ModerationResponse>>§rest: RestImplementations§
Source§impl GenerateContentResponseBody
impl GenerateContentResponseBody
Sourcepub fn builder(
id: String,
choices: Vec<Choice>,
created: i64,
model: String,
object: CompletionObject,
) -> GenerateContentResponseBodyBuilder
pub fn builder( id: String, choices: Vec<Choice>, created: i64, model: String, object: CompletionObject, ) -> 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 = ChatCompletionChunk
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 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