#[non_exhaustive]pub struct CreatePostureRequest {
pub parent: String,
pub posture_id: String,
pub posture: Option<Posture>,
/* private fields */
}Expand description
Message for creating a Posture.
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. Value for parent.
posture_id: StringRequired. User provided identifier. It should be unique in scope of an Organization and location.
posture: Option<Posture>Required. The resource being created.
Implementations§
Source§impl CreatePostureRequest
impl CreatePostureRequest
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_posture_id<T: Into<String>>(self, v: T) -> Self
pub fn set_posture_id<T: Into<String>>(self, v: T) -> Self
Sets the value of posture_id.
§Example
ⓘ
let x = CreatePostureRequest::new().set_posture_id("example");Sourcepub fn set_posture<T>(self, v: T) -> Self
pub fn set_posture<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_posture<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_posture<T>(self, v: Option<T>) -> Self
Trait Implementations§
Source§impl Clone for CreatePostureRequest
impl Clone for CreatePostureRequest
Source§fn clone(&self) -> CreatePostureRequest
fn clone(&self) -> CreatePostureRequest
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 CreatePostureRequest
impl Debug for CreatePostureRequest
Source§impl Default for CreatePostureRequest
impl Default for CreatePostureRequest
Source§fn default() -> CreatePostureRequest
fn default() -> CreatePostureRequest
Returns the “default value” for a type. Read more
Source§impl Message for CreatePostureRequest
impl Message for CreatePostureRequest
Source§impl PartialEq for CreatePostureRequest
impl PartialEq for CreatePostureRequest
impl StructuralPartialEq for CreatePostureRequest
Auto Trait Implementations§
impl Freeze for CreatePostureRequest
impl RefUnwindSafe for CreatePostureRequest
impl Send for CreatePostureRequest
impl Sync for CreatePostureRequest
impl Unpin for CreatePostureRequest
impl UnwindSafe for CreatePostureRequest
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