#[non_exhaustive]pub struct CachedContent {
pub contents: Vec<Content>,
pub tools: Vec<Tool>,
pub create_time: Option<String>,
pub update_time: Option<String>,
pub usage_metadata: Option<CachedContentUsageMetadata>,
pub expiration: Option<CachedContentExpiration>,
pub name: Option<String>,
pub display_name: Option<String>,
pub model: Option<String>,
pub system_instruction: Option<Content>,
pub tool_config: Option<ToolConfig>,
pub extra: ExtraFields,
}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.contents: Vec<Content>§tools: Vec<Tool>§create_time: Option<String>§update_time: Option<String>§usage_metadata: Option<CachedContentUsageMetadata>§expiration: Option<CachedContentExpiration>§name: Option<String>§display_name: Option<String>§model: Option<String>§system_instruction: Option<Content>§tool_config: Option<ToolConfig>§extra: ExtraFieldsImplementations§
Source§impl CachedContent
impl CachedContent
Trait Implementations§
Source§impl Clone for CachedContent
impl Clone for CachedContent
Source§fn clone(&self) -> CachedContent
fn clone(&self) -> CachedContent
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 CachedContent
impl Debug for CachedContent
Source§impl Default for CachedContent
impl Default for CachedContent
Source§fn default() -> CachedContent
fn default() -> CachedContent
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CachedContent
impl<'de> Deserialize<'de> for CachedContent
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 PartialEq for CachedContent
impl PartialEq for CachedContent
Source§impl Serialize for CachedContent
impl Serialize for CachedContent
impl StructuralPartialEq for CachedContent
Auto Trait Implementations§
impl Freeze for CachedContent
impl RefUnwindSafe for CachedContent
impl Send for CachedContent
impl Sync for CachedContent
impl Unpin for CachedContent
impl UnsafeUnpin for CachedContent
impl UnwindSafe for CachedContent
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