#[non_exhaustive]pub struct CreateDataAttributeBindingRequest {
pub parent: String,
pub data_attribute_binding_id: String,
pub data_attribute_binding: Option<DataAttributeBinding>,
pub validate_only: bool,
/* private fields */
}Expand description
Create DataAttributeBinding request.
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. The resource name of the parent data taxonomy projects/{project_number}/locations/{location_id}
data_attribute_binding_id: StringRequired. DataAttributeBinding identifier.
- Must contain only lowercase letters, numbers and hyphens.
- Must start with a letter.
- Must be between 1-63 characters.
- Must end with a number or a letter.
- Must be unique within the Location.
data_attribute_binding: Option<DataAttributeBinding>Required. DataAttributeBinding resource.
validate_only: boolOptional. Only validate the request, but do not perform mutations. The default is false.
Implementations§
Source§impl CreateDataAttributeBindingRequest
impl CreateDataAttributeBindingRequest
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
Sets the value of parent.
Sourcepub fn set_data_attribute_binding_id<T: Into<String>>(self, v: T) -> Self
pub fn set_data_attribute_binding_id<T: Into<String>>(self, v: T) -> Self
Sets the value of data_attribute_binding_id.
Sourcepub fn set_data_attribute_binding<T>(self, v: T) -> Selfwhere
T: Into<DataAttributeBinding>,
pub fn set_data_attribute_binding<T>(self, v: T) -> Selfwhere
T: Into<DataAttributeBinding>,
Sets the value of data_attribute_binding.
Sourcepub fn set_or_clear_data_attribute_binding<T>(self, v: Option<T>) -> Selfwhere
T: Into<DataAttributeBinding>,
pub fn set_or_clear_data_attribute_binding<T>(self, v: Option<T>) -> Selfwhere
T: Into<DataAttributeBinding>,
Sets or clears the value of data_attribute_binding.
Sourcepub fn set_validate_only<T: Into<bool>>(self, v: T) -> Self
pub fn set_validate_only<T: Into<bool>>(self, v: T) -> Self
Sets the value of validate_only.
Trait Implementations§
Source§impl Clone for CreateDataAttributeBindingRequest
impl Clone for CreateDataAttributeBindingRequest
Source§fn clone(&self) -> CreateDataAttributeBindingRequest
fn clone(&self) -> CreateDataAttributeBindingRequest
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 Default for CreateDataAttributeBindingRequest
impl Default for CreateDataAttributeBindingRequest
Source§fn default() -> CreateDataAttributeBindingRequest
fn default() -> CreateDataAttributeBindingRequest
Returns the “default value” for a type. Read more
Source§impl PartialEq for CreateDataAttributeBindingRequest
impl PartialEq for CreateDataAttributeBindingRequest
Source§fn eq(&self, other: &CreateDataAttributeBindingRequest) -> bool
fn eq(&self, other: &CreateDataAttributeBindingRequest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CreateDataAttributeBindingRequest
Auto Trait Implementations§
impl Freeze for CreateDataAttributeBindingRequest
impl RefUnwindSafe for CreateDataAttributeBindingRequest
impl Send for CreateDataAttributeBindingRequest
impl Sync for CreateDataAttributeBindingRequest
impl Unpin for CreateDataAttributeBindingRequest
impl UnwindSafe for CreateDataAttributeBindingRequest
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