#[non_exhaustive]pub struct SearchMigratableResourcesResponse {
pub migratable_resources: Vec<MigratableResource>,
pub next_page_token: String,
/* private fields */
}Available on crate feature
migration-service only.Expand description
Response message for MigrationService.SearchMigratableResources.
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.migratable_resources: Vec<MigratableResource>All migratable resources that can be migrated to the location specified in the request.
next_page_token: StringThe standard next-page token. The migratable_resources may not fill page_size in SearchMigratableResourcesRequest even when there are subsequent pages.
Implementations§
Source§impl SearchMigratableResourcesResponse
impl SearchMigratableResourcesResponse
pub fn new() -> Self
Sourcepub fn set_migratable_resources<T, V>(self, v: T) -> Self
pub fn set_migratable_resources<T, V>(self, v: T) -> Self
Sets the value of migratable_resources.
§Example
ⓘ
use google_cloud_aiplatform_v1::model::MigratableResource;
let x = SearchMigratableResourcesResponse::new()
.set_migratable_resources([
MigratableResource::default()/* use setters */,
MigratableResource::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 = SearchMigratableResourcesResponse::new().set_next_page_token("example");Trait Implementations§
Source§impl Clone for SearchMigratableResourcesResponse
impl Clone for SearchMigratableResourcesResponse
Source§fn clone(&self) -> SearchMigratableResourcesResponse
fn clone(&self) -> SearchMigratableResourcesResponse
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 SearchMigratableResourcesResponse
impl Default for SearchMigratableResourcesResponse
Source§fn default() -> SearchMigratableResourcesResponse
fn default() -> SearchMigratableResourcesResponse
Returns the “default value” for a type. Read more
Source§impl PartialEq for SearchMigratableResourcesResponse
impl PartialEq for SearchMigratableResourcesResponse
Source§fn eq(&self, other: &SearchMigratableResourcesResponse) -> bool
fn eq(&self, other: &SearchMigratableResourcesResponse) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SearchMigratableResourcesResponse
Auto Trait Implementations§
impl Freeze for SearchMigratableResourcesResponse
impl RefUnwindSafe for SearchMigratableResourcesResponse
impl Send for SearchMigratableResourcesResponse
impl Sync for SearchMigratableResourcesResponse
impl Unpin for SearchMigratableResourcesResponse
impl UnwindSafe for SearchMigratableResourcesResponse
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