#[non_exhaustive]pub struct ListPersistentResourcesResponse {
pub persistent_resources: Vec<PersistentResource>,
pub next_page_token: String,
/* private fields */
}Available on crate feature
persistent-resource-service only.Expand description
Response message for PersistentResourceService.ListPersistentResources
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.persistent_resources: Vec<PersistentResource>§next_page_token: StringA token to retrieve next page of results. Pass to ListPersistentResourcesRequest.page_token to obtain that page.
Implementations§
Source§impl ListPersistentResourcesResponse
impl ListPersistentResourcesResponse
pub fn new() -> Self
Sourcepub fn set_persistent_resources<T, V>(self, v: T) -> Self
pub fn set_persistent_resources<T, V>(self, v: T) -> Self
Sets the value of persistent_resources.
§Example
ⓘ
use google_cloud_aiplatform_v1::model::PersistentResource;
let x = ListPersistentResourcesResponse::new()
.set_persistent_resources([
PersistentResource::default()/* use setters */,
PersistentResource::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 = ListPersistentResourcesResponse::new().set_next_page_token("example");Trait Implementations§
Source§impl Clone for ListPersistentResourcesResponse
impl Clone for ListPersistentResourcesResponse
Source§fn clone(&self) -> ListPersistentResourcesResponse
fn clone(&self) -> ListPersistentResourcesResponse
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 Default for ListPersistentResourcesResponse
impl Default for ListPersistentResourcesResponse
Source§fn default() -> ListPersistentResourcesResponse
fn default() -> ListPersistentResourcesResponse
Returns the “default value” for a type. Read more
Source§impl PartialEq for ListPersistentResourcesResponse
impl PartialEq for ListPersistentResourcesResponse
Source§fn eq(&self, other: &ListPersistentResourcesResponse) -> bool
fn eq(&self, other: &ListPersistentResourcesResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ListPersistentResourcesResponse
Auto Trait Implementations§
impl Freeze for ListPersistentResourcesResponse
impl RefUnwindSafe for ListPersistentResourcesResponse
impl Send for ListPersistentResourcesResponse
impl Sync for ListPersistentResourcesResponse
impl Unpin for ListPersistentResourcesResponse
impl UnwindSafe for ListPersistentResourcesResponse
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