#[non_exhaustive]pub struct ListCachedContentsRequest {
pub parent: String,
pub page_size: i32,
pub page_token: String,
/* private fields */
}Expand description
Request to list 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.parent: StringRequired. The parent, which owns this collection of cached contents.
page_size: i32Optional. The maximum number of cached contents to return. The service may return fewer than this value. If unspecified, some default (under maximum) number of items will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
page_token: StringOptional. A page token, received from a previous ListCachedContents call.
Provide this to retrieve the subsequent page.
When paginating, all other parameters provided to ListCachedContents must
match the call that provided the page token.
Implementations§
Source§impl ListCachedContentsRequest
impl ListCachedContentsRequest
pub fn new() -> Self
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sets the value of parent.
Sourcepub fn set_page_size<T: Into<i32>>(self, v: T) -> Self
pub fn set_page_size<T: Into<i32>>(self, v: T) -> Self
Sets the value of page_size.
Sourcepub fn set_page_token<T: Into<String>>(self, v: T) -> Self
pub fn set_page_token<T: Into<String>>(self, v: T) -> Self
Sets the value of page_token.
Trait Implementations§
Source§impl Clone for ListCachedContentsRequest
impl Clone for ListCachedContentsRequest
Source§fn clone(&self) -> ListCachedContentsRequest
fn clone(&self) -> ListCachedContentsRequest
Returns a copy 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 ListCachedContentsRequest
impl Debug for ListCachedContentsRequest
Source§impl Default for ListCachedContentsRequest
impl Default for ListCachedContentsRequest
Source§fn default() -> ListCachedContentsRequest
fn default() -> ListCachedContentsRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ListCachedContentsRequestwhere
ListCachedContentsRequest: Default,
impl<'de> Deserialize<'de> for ListCachedContentsRequestwhere
ListCachedContentsRequest: Default,
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 Message for ListCachedContentsRequest
impl Message for ListCachedContentsRequest
impl StructuralPartialEq for ListCachedContentsRequest
Auto Trait Implementations§
impl Freeze for ListCachedContentsRequest
impl RefUnwindSafe for ListCachedContentsRequest
impl Send for ListCachedContentsRequest
impl Sync for ListCachedContentsRequest
impl Unpin for ListCachedContentsRequest
impl UnwindSafe for ListCachedContentsRequest
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