pub struct CreateCachedContentConfig {
pub http_options: Option<HttpOptions>,
pub ttl: Option<String>,
pub expire_time: Option<String>,
pub display_name: Option<String>,
pub contents: Option<Vec<Content>>,
pub system_instruction: Option<Content>,
pub tools: Option<Vec<Tool>>,
pub tool_config: Option<ToolConfig>,
pub kms_key_name: Option<String>,
}Expand description
创建缓存配置。
Fields§
§http_options: Option<HttpOptions>Optional. HTTP request overrides (SDK only, not sent to API).
ttl: Option<String>Optional. TTL (e.g. “3600s”).
expire_time: Option<String>Optional. Expire time (RFC3339).
display_name: Option<String>Optional. Display name.
contents: Option<Vec<Content>>Optional. Contents to cache.
system_instruction: Option<Content>Optional. System instruction.
tools: Option<Vec<Tool>>Optional. Tools list.
tool_config: Option<ToolConfig>Optional. Tool config.
kms_key_name: Option<String>Optional. KMS key name (Vertex only).
Trait Implementations§
Source§impl Clone for CreateCachedContentConfig
impl Clone for CreateCachedContentConfig
Source§fn clone(&self) -> CreateCachedContentConfig
fn clone(&self) -> CreateCachedContentConfig
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 Debug for CreateCachedContentConfig
impl Debug for CreateCachedContentConfig
Source§impl Default for CreateCachedContentConfig
impl Default for CreateCachedContentConfig
Source§fn default() -> CreateCachedContentConfig
fn default() -> CreateCachedContentConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CreateCachedContentConfig
impl<'de> Deserialize<'de> for CreateCachedContentConfig
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
Auto Trait Implementations§
impl Freeze for CreateCachedContentConfig
impl RefUnwindSafe for CreateCachedContentConfig
impl Send for CreateCachedContentConfig
impl Sync for CreateCachedContentConfig
impl Unpin for CreateCachedContentConfig
impl UnsafeUnpin for CreateCachedContentConfig
impl UnwindSafe for CreateCachedContentConfig
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