#[non_exhaustive]pub struct ListCachedContentsResponse {
pub cached_contents: Vec<CachedContent>,
pub next_page_token: String,
/* private fields */
}Available on crate feature
gen-ai-cache-service only.Expand description
Response with a list of CachedContents.
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.cached_contents: Vec<CachedContent>List of cached contents.
next_page_token: StringA token, which can be sent as page_token to retrieve the next page.
If this field is omitted, there are no subsequent pages.
Implementations§
Source§impl ListCachedContentsResponse
impl ListCachedContentsResponse
pub fn new() -> Self
Sourcepub fn set_cached_contents<T, V>(self, v: T) -> Self
pub fn set_cached_contents<T, V>(self, v: T) -> Self
Sets the value of cached_contents.
§Example
ⓘ
use google_cloud_aiplatform_v1::model::CachedContent;
let x = ListCachedContentsResponse::new()
.set_cached_contents([
CachedContent::default()/* use setters */,
CachedContent::default()/* use (different) setters */,
]);Sourcepub fn set_next_page_token<T: Into<String>>(self, v: T) -> Self
pub fn set_next_page_token<T: Into<String>>(self, v: T) -> Self
Sets the value of next_page_token.
§Example
ⓘ
let x = ListCachedContentsResponse::new().set_next_page_token("example");Trait Implementations§
Source§impl Clone for ListCachedContentsResponse
impl Clone for ListCachedContentsResponse
Source§fn clone(&self) -> ListCachedContentsResponse
fn clone(&self) -> ListCachedContentsResponse
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 ListCachedContentsResponse
impl Debug for ListCachedContentsResponse
Source§impl Default for ListCachedContentsResponse
impl Default for ListCachedContentsResponse
Source§fn default() -> ListCachedContentsResponse
fn default() -> ListCachedContentsResponse
Returns the “default value” for a type. Read more
Source§impl Message for ListCachedContentsResponse
impl Message for ListCachedContentsResponse
impl StructuralPartialEq for ListCachedContentsResponse
Auto Trait Implementations§
impl Freeze for ListCachedContentsResponse
impl RefUnwindSafe for ListCachedContentsResponse
impl Send for ListCachedContentsResponse
impl Sync for ListCachedContentsResponse
impl Unpin for ListCachedContentsResponse
impl UnwindSafe for ListCachedContentsResponse
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