#[non_exhaustive]pub struct SqlInstancesPointInTimeRestoreRequest {
pub parent: String,
pub context: Option<PointInTimeRestoreContext>,
/* private fields */
}Expand description
Request to perform a point in time restore on a Google Cloud Backup and Disaster Recovery managed instance.
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.parent: StringRequired. The parent resource where you created this instance. Format: projects/{project}
context: Option<PointInTimeRestoreContext>Required. The context for request to perform a PITR on a Google Cloud Backup and Disaster Recovery managed instance.
Implementations§
Source§impl SqlInstancesPointInTimeRestoreRequest
impl SqlInstancesPointInTimeRestoreRequest
pub fn new() -> Self
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_context<T>(self, v: T) -> Selfwhere
T: Into<PointInTimeRestoreContext>,
pub fn set_context<T>(self, v: T) -> Selfwhere
T: Into<PointInTimeRestoreContext>,
Sourcepub fn set_or_clear_context<T>(self, v: Option<T>) -> Selfwhere
T: Into<PointInTimeRestoreContext>,
pub fn set_or_clear_context<T>(self, v: Option<T>) -> Selfwhere
T: Into<PointInTimeRestoreContext>,
Sets or clears the value of context.
§Example
ⓘ
use google_cloud_sql_v1::model::PointInTimeRestoreContext;
let x = SqlInstancesPointInTimeRestoreRequest::new().set_or_clear_context(Some(PointInTimeRestoreContext::default()/* use setters */));
let x = SqlInstancesPointInTimeRestoreRequest::new().set_or_clear_context(None::<PointInTimeRestoreContext>);Trait Implementations§
Source§impl Clone for SqlInstancesPointInTimeRestoreRequest
impl Clone for SqlInstancesPointInTimeRestoreRequest
Source§fn clone(&self) -> SqlInstancesPointInTimeRestoreRequest
fn clone(&self) -> SqlInstancesPointInTimeRestoreRequest
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 SqlInstancesPointInTimeRestoreRequest
impl Default for SqlInstancesPointInTimeRestoreRequest
Source§fn default() -> SqlInstancesPointInTimeRestoreRequest
fn default() -> SqlInstancesPointInTimeRestoreRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for SqlInstancesPointInTimeRestoreRequest
impl PartialEq for SqlInstancesPointInTimeRestoreRequest
Source§fn eq(&self, other: &SqlInstancesPointInTimeRestoreRequest) -> bool
fn eq(&self, other: &SqlInstancesPointInTimeRestoreRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SqlInstancesPointInTimeRestoreRequest
Auto Trait Implementations§
impl Freeze for SqlInstancesPointInTimeRestoreRequest
impl RefUnwindSafe for SqlInstancesPointInTimeRestoreRequest
impl Send for SqlInstancesPointInTimeRestoreRequest
impl Sync for SqlInstancesPointInTimeRestoreRequest
impl Unpin for SqlInstancesPointInTimeRestoreRequest
impl UnwindSafe for SqlInstancesPointInTimeRestoreRequest
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