#[non_exhaustive]pub struct Group {
pub name: String,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub description: String,
pub display_name: String,
pub migration_target_type: MigrationTargetType,
/* private fields */
}Expand description
Describes message for ‘Group’ resource. The Group is a collections of several MigratingVms.
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.name: StringOutput only. The Group name.
create_time: Option<Timestamp>Output only. The create time timestamp.
update_time: Option<Timestamp>Output only. The update time timestamp.
description: StringUser-provided description of the group.
display_name: StringDisplay name is a user defined name for this group which can be updated.
migration_target_type: MigrationTargetTypeImmutable. The target type of this group.
Implementations§
Source§impl Group
impl Group
Sourcepub fn set_create_time<T>(self, v: T) -> Self
pub fn set_create_time<T>(self, v: T) -> Self
Sets the value of create_time.
§Example
ⓘ
use wkt::Timestamp;
let x = Group::new().set_create_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of create_time.
§Example
ⓘ
use wkt::Timestamp;
let x = Group::new().set_or_clear_create_time(Some(Timestamp::default()/* use setters */));
let x = Group::new().set_or_clear_create_time(None::<Timestamp>);Sourcepub fn set_update_time<T>(self, v: T) -> Self
pub fn set_update_time<T>(self, v: T) -> Self
Sets the value of update_time.
§Example
ⓘ
use wkt::Timestamp;
let x = Group::new().set_update_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of update_time.
§Example
ⓘ
use wkt::Timestamp;
let x = Group::new().set_or_clear_update_time(Some(Timestamp::default()/* use setters */));
let x = Group::new().set_or_clear_update_time(None::<Timestamp>);Sourcepub fn set_description<T: Into<String>>(self, v: T) -> Self
pub fn set_description<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_display_name<T: Into<String>>(self, v: T) -> Self
pub fn set_display_name<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_migration_target_type<T: Into<MigrationTargetType>>(
self,
v: T,
) -> Self
pub fn set_migration_target_type<T: Into<MigrationTargetType>>( self, v: T, ) -> Self
Sets the value of migration_target_type.
§Example
ⓘ
use google_cloud_vmmigration_v1::model::group::MigrationTargetType;
let x0 = Group::new().set_migration_target_type(MigrationTargetType::Gce);
let x1 = Group::new().set_migration_target_type(MigrationTargetType::Disks);Trait Implementations§
impl StructuralPartialEq for Group
Auto Trait Implementations§
impl Freeze for Group
impl RefUnwindSafe for Group
impl Send for Group
impl Sync for Group
impl Unpin for Group
impl UnsafeUnpin for Group
impl UnwindSafe for Group
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