#[non_exhaustive]pub struct RemoveControlRequest {
pub serving_config: String,
pub control_id: String,
/* private fields */
}Expand description
Request for RemoveControl method.
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.serving_config: StringRequired. The source ServingConfig resource name . Format:
projects/{project_number}/locations/{location_id}/catalogs/{catalog_id}/servingConfigs/{serving_config_id}
control_id: StringRequired. The id of the control to apply. Assumed to be in the same catalog as the serving config.
Implementations§
Source§impl RemoveControlRequest
impl RemoveControlRequest
pub fn new() -> Self
Sourcepub fn set_serving_config<T: Into<String>>(self, v: T) -> Self
pub fn set_serving_config<T: Into<String>>(self, v: T) -> Self
Sets the value of serving_config.
§Example
ⓘ
let x = RemoveControlRequest::new().set_serving_config("example");Sourcepub fn set_control_id<T: Into<String>>(self, v: T) -> Self
pub fn set_control_id<T: Into<String>>(self, v: T) -> Self
Sets the value of control_id.
§Example
ⓘ
let x = RemoveControlRequest::new().set_control_id("example");Trait Implementations§
Source§impl Clone for RemoveControlRequest
impl Clone for RemoveControlRequest
Source§fn clone(&self) -> RemoveControlRequest
fn clone(&self) -> RemoveControlRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RemoveControlRequest
impl Debug for RemoveControlRequest
Source§impl Default for RemoveControlRequest
impl Default for RemoveControlRequest
Source§fn default() -> RemoveControlRequest
fn default() -> RemoveControlRequest
Returns the “default value” for a type. Read more
Source§impl Message for RemoveControlRequest
impl Message for RemoveControlRequest
Source§impl PartialEq for RemoveControlRequest
impl PartialEq for RemoveControlRequest
impl StructuralPartialEq for RemoveControlRequest
Auto Trait Implementations§
impl Freeze for RemoveControlRequest
impl RefUnwindSafe for RemoveControlRequest
impl Send for RemoveControlRequest
impl Sync for RemoveControlRequest
impl Unpin for RemoveControlRequest
impl UnwindSafe for RemoveControlRequest
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