#[non_exhaustive]pub struct WorkloadCapturesStartReplayRequest {
pub project: String,
pub instance: String,
pub start_workload_replay_context: Option<StartWorkloadReplayContext>,
pub workload_id: String,
/* private fields */
}Expand description
Request to start executing a captured workload on a replay instance (the Cloud SQL instance where the recorded SQL queries are executed).
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 instance.
instance: StringRequired. Cloud SQL instance ID. This does not include the project ID.
start_workload_replay_context: Option<StartWorkloadReplayContext>Required. Contains details about the start workload replay operation.
workload_id: StringRequired. The ID of the workload to replay.
Implementations§
Source§impl WorkloadCapturesStartReplayRequest
impl WorkloadCapturesStartReplayRequest
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_start_workload_replay_context<T>(self, v: T) -> Selfwhere
T: Into<StartWorkloadReplayContext>,
pub fn set_start_workload_replay_context<T>(self, v: T) -> Selfwhere
T: Into<StartWorkloadReplayContext>,
Sets the value of start_workload_replay_context.
§Example
ⓘ
use google_cloud_sql_v1::model::StartWorkloadReplayContext;
let x = WorkloadCapturesStartReplayRequest::new().set_start_workload_replay_context(StartWorkloadReplayContext::default()/* use setters */);Sourcepub fn set_or_clear_start_workload_replay_context<T>(self, v: Option<T>) -> Selfwhere
T: Into<StartWorkloadReplayContext>,
pub fn set_or_clear_start_workload_replay_context<T>(self, v: Option<T>) -> Selfwhere
T: Into<StartWorkloadReplayContext>,
Sets or clears the value of start_workload_replay_context.
§Example
ⓘ
use google_cloud_sql_v1::model::StartWorkloadReplayContext;
let x = WorkloadCapturesStartReplayRequest::new().set_or_clear_start_workload_replay_context(Some(StartWorkloadReplayContext::default()/* use setters */));
let x = WorkloadCapturesStartReplayRequest::new().set_or_clear_start_workload_replay_context(None::<StartWorkloadReplayContext>);Sourcepub fn set_workload_id<T: Into<String>>(self, v: T) -> Self
pub fn set_workload_id<T: Into<String>>(self, v: T) -> Self
Sets the value of workload_id.
§Example
ⓘ
let x = WorkloadCapturesStartReplayRequest::new().set_workload_id("example");Trait Implementations§
impl StructuralPartialEq for WorkloadCapturesStartReplayRequest
Auto Trait Implementations§
impl Freeze for WorkloadCapturesStartReplayRequest
impl RefUnwindSafe for WorkloadCapturesStartReplayRequest
impl Send for WorkloadCapturesStartReplayRequest
impl Sync for WorkloadCapturesStartReplayRequest
impl Unpin for WorkloadCapturesStartReplayRequest
impl UnsafeUnpin for WorkloadCapturesStartReplayRequest
impl UnwindSafe for WorkloadCapturesStartReplayRequest
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