#[non_exhaustive]pub struct AddControlRequest {
pub serving_config: String,
pub control_id: String,
/* private fields */
}Expand description
Request for AddControl 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 - if id is not found a NOT_FOUND error is returned.
Implementations§
Source§impl AddControlRequest
impl AddControlRequest
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 = AddControlRequest::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
Trait Implementations§
Source§impl Clone for AddControlRequest
impl Clone for AddControlRequest
Source§fn clone(&self) -> AddControlRequest
fn clone(&self) -> AddControlRequest
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 AddControlRequest
impl Debug for AddControlRequest
Source§impl Default for AddControlRequest
impl Default for AddControlRequest
Source§fn default() -> AddControlRequest
fn default() -> AddControlRequest
Returns the “default value” for a type. Read more
Source§impl Message for AddControlRequest
impl Message for AddControlRequest
Source§impl PartialEq for AddControlRequest
impl PartialEq for AddControlRequest
impl StructuralPartialEq for AddControlRequest
Auto Trait Implementations§
impl Freeze for AddControlRequest
impl RefUnwindSafe for AddControlRequest
impl Send for AddControlRequest
impl Sync for AddControlRequest
impl Unpin for AddControlRequest
impl UnwindSafe for AddControlRequest
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