#[non_exhaustive]pub struct WorkloadCapturesStopReplayRequest {
pub project: String,
pub instance: String,
pub stop_workload_replay_context: Option<StopWorkloadReplayContext>,
/* private fields */
}Expand description
Request to stop an active workload replay on a target Cloud SQL replay 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.project: StringRequired. Project ID of the project that contains the target replay instance.
instance: StringRequired. Cloud SQL instance ID of the target replay instance. This does not include the project ID.
stop_workload_replay_context: Option<StopWorkloadReplayContext>Optional. Contains details about the stop workload replay operation. If omitted, default values are used.
Implementations§
Source§impl WorkloadCapturesStopReplayRequest
impl WorkloadCapturesStopReplayRequest
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_instance<T: Into<String>>(self, v: T) -> Self
pub fn set_instance<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_stop_workload_replay_context<T>(self, v: T) -> Selfwhere
T: Into<StopWorkloadReplayContext>,
pub fn set_stop_workload_replay_context<T>(self, v: T) -> Selfwhere
T: Into<StopWorkloadReplayContext>,
Sets the value of stop_workload_replay_context.
§Example
ⓘ
use google_cloud_sql_v1::model::StopWorkloadReplayContext;
let x = WorkloadCapturesStopReplayRequest::new().set_stop_workload_replay_context(StopWorkloadReplayContext::default()/* use setters */);Sourcepub fn set_or_clear_stop_workload_replay_context<T>(self, v: Option<T>) -> Selfwhere
T: Into<StopWorkloadReplayContext>,
pub fn set_or_clear_stop_workload_replay_context<T>(self, v: Option<T>) -> Selfwhere
T: Into<StopWorkloadReplayContext>,
Sets or clears the value of stop_workload_replay_context.
§Example
ⓘ
use google_cloud_sql_v1::model::StopWorkloadReplayContext;
let x = WorkloadCapturesStopReplayRequest::new().set_or_clear_stop_workload_replay_context(Some(StopWorkloadReplayContext::default()/* use setters */));
let x = WorkloadCapturesStopReplayRequest::new().set_or_clear_stop_workload_replay_context(None::<StopWorkloadReplayContext>);Trait Implementations§
impl StructuralPartialEq for WorkloadCapturesStopReplayRequest
Auto Trait Implementations§
impl Freeze for WorkloadCapturesStopReplayRequest
impl RefUnwindSafe for WorkloadCapturesStopReplayRequest
impl Send for WorkloadCapturesStopReplayRequest
impl Sync for WorkloadCapturesStopReplayRequest
impl Unpin for WorkloadCapturesStopReplayRequest
impl UnsafeUnpin for WorkloadCapturesStopReplayRequest
impl UnwindSafe for WorkloadCapturesStopReplayRequest
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