#[non_exhaustive]pub struct CreateTagKeyRequest {
pub tag_key: Option<TagKey>,
pub validate_only: bool,
/* private fields */
}Expand description
The request message for creating a TagKey.
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_key: Option<TagKey>Required. The TagKey to be created. Only fields short_name,
description, and parent are considered during the creation request.
validate_only: boolOptional. Set to true to perform validations necessary for creating the resource, but not actually perform the action.
Implementations§
Source§impl CreateTagKeyRequest
impl CreateTagKeyRequest
pub fn new() -> Self
Sourcepub fn set_tag_key<T>(self, v: T) -> Self
pub fn set_tag_key<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_tag_key<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_tag_key<T>(self, v: Option<T>) -> Self
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 = CreateTagKeyRequest::new().set_validate_only(true);Trait Implementations§
Source§impl Clone for CreateTagKeyRequest
impl Clone for CreateTagKeyRequest
Source§fn clone(&self) -> CreateTagKeyRequest
fn clone(&self) -> CreateTagKeyRequest
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 CreateTagKeyRequest
impl Debug for CreateTagKeyRequest
Source§impl Default for CreateTagKeyRequest
impl Default for CreateTagKeyRequest
Source§fn default() -> CreateTagKeyRequest
fn default() -> CreateTagKeyRequest
Returns the “default value” for a type. Read more
Source§impl Message for CreateTagKeyRequest
impl Message for CreateTagKeyRequest
Source§impl PartialEq for CreateTagKeyRequest
impl PartialEq for CreateTagKeyRequest
impl StructuralPartialEq for CreateTagKeyRequest
Auto Trait Implementations§
impl Freeze for CreateTagKeyRequest
impl RefUnwindSafe for CreateTagKeyRequest
impl Send for CreateTagKeyRequest
impl Sync for CreateTagKeyRequest
impl Unpin for CreateTagKeyRequest
impl UnwindSafe for CreateTagKeyRequest
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