#[non_exhaustive]pub struct AutoMigrationConfig {
pub name: String,
pub update_time: Option<Timestamp>,
pub auto_migration_enabled: bool,
/* private fields */
}Expand description
AutoMigrationConfig contains the automigration configuration for a project.
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: StringIdentifier. The name of the AutoMigrationConfig. Format: ‘projects/{project_id}/locations/{location}/AutoMigrationConfig’.
update_time: Option<Timestamp>Output only. Time the AutoMigrationConfig was last updated.
auto_migration_enabled: boolOptional. Whether the auto migration is enabled for the project.
Implementations§
Source§impl AutoMigrationConfig
impl AutoMigrationConfig
pub fn new() -> Self
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 = AutoMigrationConfig::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 = AutoMigrationConfig::new().set_or_clear_update_time(Some(Timestamp::default()/* use setters */));
let x = AutoMigrationConfig::new().set_or_clear_update_time(None::<Timestamp>);Sourcepub fn set_auto_migration_enabled<T: Into<bool>>(self, v: T) -> Self
pub fn set_auto_migration_enabled<T: Into<bool>>(self, v: T) -> Self
Sets the value of auto_migration_enabled.
§Example
ⓘ
let x = AutoMigrationConfig::new().set_auto_migration_enabled(true);Trait Implementations§
Source§impl Clone for AutoMigrationConfig
impl Clone for AutoMigrationConfig
Source§fn clone(&self) -> AutoMigrationConfig
fn clone(&self) -> AutoMigrationConfig
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 AutoMigrationConfig
impl Debug for AutoMigrationConfig
Source§impl Default for AutoMigrationConfig
impl Default for AutoMigrationConfig
Source§fn default() -> AutoMigrationConfig
fn default() -> AutoMigrationConfig
Returns the “default value” for a type. Read more
Source§impl Message for AutoMigrationConfig
impl Message for AutoMigrationConfig
Source§impl PartialEq for AutoMigrationConfig
impl PartialEq for AutoMigrationConfig
impl StructuralPartialEq for AutoMigrationConfig
Auto Trait Implementations§
impl Freeze for AutoMigrationConfig
impl RefUnwindSafe for AutoMigrationConfig
impl Send for AutoMigrationConfig
impl Sync for AutoMigrationConfig
impl Unpin for AutoMigrationConfig
impl UnwindSafe for AutoMigrationConfig
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