#[non_exhaustive]pub struct CreateTagBindingRequest {
pub tag_binding: Option<TagBinding>,
pub validate_only: bool,
/* private fields */
}Expand description
The request message to create a TagBinding.
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.tag_binding: Option<TagBinding>Required. The TagBinding to be created.
validate_only: boolOptional. Set to true to perform the validations necessary for creating the resource, but not actually perform the action.
Implementations§
Source§impl CreateTagBindingRequest
impl CreateTagBindingRequest
pub fn new() -> Self
Sourcepub fn set_tag_binding<T>(self, v: T) -> Selfwhere
T: Into<TagBinding>,
pub fn set_tag_binding<T>(self, v: T) -> Selfwhere
T: Into<TagBinding>,
Sets the value of tag_binding.
§Example
ⓘ
use google_cloud_resourcemanager_v3::model::TagBinding;
let x = CreateTagBindingRequest::new().set_tag_binding(TagBinding::default()/* use setters */);Sourcepub fn set_or_clear_tag_binding<T>(self, v: Option<T>) -> Selfwhere
T: Into<TagBinding>,
pub fn set_or_clear_tag_binding<T>(self, v: Option<T>) -> Selfwhere
T: Into<TagBinding>,
Sets or clears the value of tag_binding.
§Example
ⓘ
use google_cloud_resourcemanager_v3::model::TagBinding;
let x = CreateTagBindingRequest::new().set_or_clear_tag_binding(Some(TagBinding::default()/* use setters */));
let x = CreateTagBindingRequest::new().set_or_clear_tag_binding(None::<TagBinding>);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.
§Example
ⓘ
let x = CreateTagBindingRequest::new().set_validate_only(true);Trait Implementations§
Source§impl Clone for CreateTagBindingRequest
impl Clone for CreateTagBindingRequest
Source§fn clone(&self) -> CreateTagBindingRequest
fn clone(&self) -> CreateTagBindingRequest
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 CreateTagBindingRequest
impl Debug for CreateTagBindingRequest
Source§impl Default for CreateTagBindingRequest
impl Default for CreateTagBindingRequest
Source§fn default() -> CreateTagBindingRequest
fn default() -> CreateTagBindingRequest
Returns the “default value” for a type. Read more
Source§impl Message for CreateTagBindingRequest
impl Message for CreateTagBindingRequest
Source§impl PartialEq for CreateTagBindingRequest
impl PartialEq for CreateTagBindingRequest
impl StructuralPartialEq for CreateTagBindingRequest
Auto Trait Implementations§
impl Freeze for CreateTagBindingRequest
impl RefUnwindSafe for CreateTagBindingRequest
impl Send for CreateTagBindingRequest
impl Sync for CreateTagBindingRequest
impl Unpin for CreateTagBindingRequest
impl UnwindSafe for CreateTagBindingRequest
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