#[non_exhaustive]pub struct CreateControlRequest {
pub parent: String,
pub control: Option<Control>,
pub control_id: String,
/* private fields */
}Available on crate feature
control-service only.Expand description
Request for CreateControl 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.parent: StringRequired. Full resource name of parent data store. Format:
projects/{project}/locations/{location}/collections/{collection_id}/dataStores/{data_store_id}
or
projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}.
control: Option<Control>Required. The Control to create.
control_id: StringRequired. The ID to use for the Control, which will become the final component of the Control’s resource name.
This value must be within 1-63 characters. Valid characters are /[a-z][0-9]-_/.
Implementations§
Source§impl CreateControlRequest
impl CreateControlRequest
pub fn new() -> Self
Sourcepub fn set_parent<T: Into<String>>(self, v: T) -> Self
pub fn set_parent<T: Into<String>>(self, v: T) -> Self
Sourcepub fn set_control<T>(self, v: T) -> Self
pub fn set_control<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_control<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_control<T>(self, v: Option<T>) -> Self
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 = CreateControlRequest::new().set_control_id("example");Trait Implementations§
Source§impl Clone for CreateControlRequest
impl Clone for CreateControlRequest
Source§fn clone(&self) -> CreateControlRequest
fn clone(&self) -> CreateControlRequest
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 CreateControlRequest
impl Debug for CreateControlRequest
Source§impl Default for CreateControlRequest
impl Default for CreateControlRequest
Source§fn default() -> CreateControlRequest
fn default() -> CreateControlRequest
Returns the “default value” for a type. Read more
Source§impl Message for CreateControlRequest
impl Message for CreateControlRequest
Source§impl PartialEq for CreateControlRequest
impl PartialEq for CreateControlRequest
impl StructuralPartialEq for CreateControlRequest
Auto Trait Implementations§
impl Freeze for CreateControlRequest
impl RefUnwindSafe for CreateControlRequest
impl Send for CreateControlRequest
impl Sync for CreateControlRequest
impl Unpin for CreateControlRequest
impl UnwindSafe for CreateControlRequest
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