#[non_exhaustive]pub struct CreateTagHoldRequest {
pub parent: String,
pub tag_hold: Option<TagHold>,
pub validate_only: bool,
/* private fields */
}Expand description
The request message to create a TagHold.
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 TagHold’s parent TagValue. Must be of
the form: tagValues/{tag-value-id}.
tag_hold: Option<TagHold>Required. The TagHold 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 CreateTagHoldRequest
impl CreateTagHoldRequest
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_tag_hold<T>(self, v: T) -> Self
pub fn set_tag_hold<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_tag_hold<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_tag_hold<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 = CreateTagHoldRequest::new().set_validate_only(true);Trait Implementations§
Source§impl Clone for CreateTagHoldRequest
impl Clone for CreateTagHoldRequest
Source§fn clone(&self) -> CreateTagHoldRequest
fn clone(&self) -> CreateTagHoldRequest
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 CreateTagHoldRequest
impl Debug for CreateTagHoldRequest
Source§impl Default for CreateTagHoldRequest
impl Default for CreateTagHoldRequest
Source§fn default() -> CreateTagHoldRequest
fn default() -> CreateTagHoldRequest
Returns the “default value” for a type. Read more
Source§impl Message for CreateTagHoldRequest
impl Message for CreateTagHoldRequest
Source§impl PartialEq for CreateTagHoldRequest
impl PartialEq for CreateTagHoldRequest
impl StructuralPartialEq for CreateTagHoldRequest
Auto Trait Implementations§
impl Freeze for CreateTagHoldRequest
impl RefUnwindSafe for CreateTagHoldRequest
impl Send for CreateTagHoldRequest
impl Sync for CreateTagHoldRequest
impl Unpin for CreateTagHoldRequest
impl UnwindSafe for CreateTagHoldRequest
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