#[non_exhaustive]pub struct SqlInstancesGetLatestRecoveryTimeRequest {
pub instance: String,
pub project: String,
pub source_instance_deletion_time: Option<Timestamp>,
/* private fields */
}Expand description
Instance get latest recovery time request.
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.instance: StringCloud SQL instance ID. This does not include the project ID.
project: StringProject ID of the project that contains the instance.
source_instance_deletion_time: Option<Timestamp>The timestamp used to identify the time when the source instance is deleted. If this instance is deleted, then you must set the timestamp.
Implementations§
Source§impl SqlInstancesGetLatestRecoveryTimeRequest
impl SqlInstancesGetLatestRecoveryTimeRequest
pub fn new() -> Self
Sourcepub fn set_instance<T: Into<String>>(self, v: T) -> Self
pub fn set_instance<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_project<T: Into<String>>(self, v: T) -> Self
pub fn set_project<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_source_instance_deletion_time<T>(self, v: T) -> Self
pub fn set_source_instance_deletion_time<T>(self, v: T) -> Self
Sets the value of source_instance_deletion_time.
§Example
ⓘ
use wkt::Timestamp;
let x = SqlInstancesGetLatestRecoveryTimeRequest::new().set_source_instance_deletion_time(Timestamp::default()/* use setters */);Sourcepub fn set_or_clear_source_instance_deletion_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_source_instance_deletion_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of source_instance_deletion_time.
§Example
ⓘ
use wkt::Timestamp;
let x = SqlInstancesGetLatestRecoveryTimeRequest::new().set_or_clear_source_instance_deletion_time(Some(Timestamp::default()/* use setters */));
let x = SqlInstancesGetLatestRecoveryTimeRequest::new().set_or_clear_source_instance_deletion_time(None::<Timestamp>);Trait Implementations§
Source§impl Clone for SqlInstancesGetLatestRecoveryTimeRequest
impl Clone for SqlInstancesGetLatestRecoveryTimeRequest
Source§fn clone(&self) -> SqlInstancesGetLatestRecoveryTimeRequest
fn clone(&self) -> SqlInstancesGetLatestRecoveryTimeRequest
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 SqlInstancesGetLatestRecoveryTimeRequest
impl Default for SqlInstancesGetLatestRecoveryTimeRequest
Source§fn default() -> SqlInstancesGetLatestRecoveryTimeRequest
fn default() -> SqlInstancesGetLatestRecoveryTimeRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for SqlInstancesGetLatestRecoveryTimeRequest
impl PartialEq for SqlInstancesGetLatestRecoveryTimeRequest
Source§fn eq(&self, other: &SqlInstancesGetLatestRecoveryTimeRequest) -> bool
fn eq(&self, other: &SqlInstancesGetLatestRecoveryTimeRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SqlInstancesGetLatestRecoveryTimeRequest
Auto Trait Implementations§
impl Freeze for SqlInstancesGetLatestRecoveryTimeRequest
impl RefUnwindSafe for SqlInstancesGetLatestRecoveryTimeRequest
impl Send for SqlInstancesGetLatestRecoveryTimeRequest
impl Sync for SqlInstancesGetLatestRecoveryTimeRequest
impl Unpin for SqlInstancesGetLatestRecoveryTimeRequest
impl UnwindSafe for SqlInstancesGetLatestRecoveryTimeRequest
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