pub struct GeminiPromptCacheSettings {
pub enabled: bool,
pub mode: GeminiPromptCacheMode,
pub explicit_ttl_seconds: Option<u64>,
/* private fields */
}Expand description
Gemini API caching preferences
Fields§
§enabled: bool§mode: GeminiPromptCacheMode§explicit_ttl_seconds: Option<u64>TTL for explicit caches (ignored in implicit mode)
Trait Implementations§
Source§impl Clone for GeminiPromptCacheSettings
impl Clone for GeminiPromptCacheSettings
Source§impl Debug for GeminiPromptCacheSettings
impl Debug for GeminiPromptCacheSettings
Source§impl Default for GeminiPromptCacheSettings
impl Default for GeminiPromptCacheSettings
Source§impl<'de> Deserialize<'de> for GeminiPromptCacheSettings
impl<'de> Deserialize<'de> for GeminiPromptCacheSettings
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 JsonSchema for GeminiPromptCacheSettings
impl JsonSchema for GeminiPromptCacheSettings
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for GeminiPromptCacheSettings
impl RefUnwindSafe for GeminiPromptCacheSettings
impl Send for GeminiPromptCacheSettings
impl Sync for GeminiPromptCacheSettings
impl Unpin for GeminiPromptCacheSettings
impl UnsafeUnpin for GeminiPromptCacheSettings
impl UnwindSafe for GeminiPromptCacheSettings
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