#[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
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§
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 UnsafeUnpin 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