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