#[non_exhaustive]pub struct WorkloadCapturesStartRequest {
pub project: String,
pub instance: String,
pub start_workload_capture_context: Option<StartWorkloadCaptureContext>,
/* private fields */
}Expand description
Request to start recording traffic from the primary instance (captured workload).
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_capture_context: Option<StartWorkloadCaptureContext>Optional. Contains details about the start workload capture operation.
Implementations§
Source§impl WorkloadCapturesStartRequest
impl WorkloadCapturesStartRequest
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_capture_context<T>(self, v: T) -> Selfwhere
T: Into<StartWorkloadCaptureContext>,
pub fn set_start_workload_capture_context<T>(self, v: T) -> Selfwhere
T: Into<StartWorkloadCaptureContext>,
Sets the value of start_workload_capture_context.
§Example
ⓘ
use google_cloud_sql_v1::model::StartWorkloadCaptureContext;
let x = WorkloadCapturesStartRequest::new().set_start_workload_capture_context(StartWorkloadCaptureContext::default()/* use setters */);Sourcepub fn set_or_clear_start_workload_capture_context<T>(
self,
v: Option<T>,
) -> Selfwhere
T: Into<StartWorkloadCaptureContext>,
pub fn set_or_clear_start_workload_capture_context<T>(
self,
v: Option<T>,
) -> Selfwhere
T: Into<StartWorkloadCaptureContext>,
Sets or clears the value of start_workload_capture_context.
§Example
ⓘ
use google_cloud_sql_v1::model::StartWorkloadCaptureContext;
let x = WorkloadCapturesStartRequest::new().set_or_clear_start_workload_capture_context(Some(StartWorkloadCaptureContext::default()/* use setters */));
let x = WorkloadCapturesStartRequest::new().set_or_clear_start_workload_capture_context(None::<StartWorkloadCaptureContext>);Trait Implementations§
Source§impl Clone for WorkloadCapturesStartRequest
impl Clone for WorkloadCapturesStartRequest
Source§impl Debug for WorkloadCapturesStartRequest
impl Debug for WorkloadCapturesStartRequest
impl StructuralPartialEq for WorkloadCapturesStartRequest
Auto Trait Implementations§
impl Freeze for WorkloadCapturesStartRequest
impl RefUnwindSafe for WorkloadCapturesStartRequest
impl Send for WorkloadCapturesStartRequest
impl Sync for WorkloadCapturesStartRequest
impl Unpin for WorkloadCapturesStartRequest
impl UnsafeUnpin for WorkloadCapturesStartRequest
impl UnwindSafe for WorkloadCapturesStartRequest
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