pub struct GoogleSettings {
pub safety_settings: Option<Value>,
pub cached_content: Option<String>,
pub labels: Option<Value>,
pub response_logprobs: Option<bool>,
pub logprobs: Option<u32>,
pub service_tier: Option<String>,
pub cloud_service_tier: Option<GoogleCloudServiceTier>,
}Expand description
Gemini generateContent typed settings.
Fields§
§safety_settings: Option<Value>Safety settings array.
cached_content: Option<String>Cached content resource name.
labels: Option<Value>Backend-specific labels map.
response_logprobs: Option<bool>Return chosen-token log probabilities.
logprobs: Option<u32>Number of top candidate log probabilities to return.
service_tier: Option<String>Cloud service tier.
cloud_service_tier: Option<GoogleCloudServiceTier>Google Cloud routing tier.
Trait Implementations§
Source§impl Clone for GoogleSettings
impl Clone for GoogleSettings
Source§fn clone(&self) -> GoogleSettings
fn clone(&self) -> GoogleSettings
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 GoogleSettings
impl Debug for GoogleSettings
Source§impl Default for GoogleSettings
impl Default for GoogleSettings
Source§fn default() -> GoogleSettings
fn default() -> GoogleSettings
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GoogleSettings
impl<'de> Deserialize<'de> for GoogleSettings
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 GoogleSettings
Source§impl PartialEq for GoogleSettings
impl PartialEq for GoogleSettings
Source§impl Serialize for GoogleSettings
impl Serialize for GoogleSettings
impl StructuralPartialEq for GoogleSettings
Auto Trait Implementations§
impl Freeze for GoogleSettings
impl RefUnwindSafe for GoogleSettings
impl Send for GoogleSettings
impl Sync for GoogleSettings
impl Unpin for GoogleSettings
impl UnsafeUnpin for GoogleSettings
impl UnwindSafe for GoogleSettings
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