#[non_exhaustive]pub struct CreateAspectTypeRequest {
pub parent: String,
pub aspect_type_id: String,
pub aspect_type: Option<AspectType>,
pub validate_only: bool,
/* private fields */
}Expand description
Create AspectType 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 AspectType, of the form:
projects/{project_number}/locations/{location_id}
where location_id refers to a Google Cloud region.
aspect_type_id: StringRequired. AspectType identifier.
aspect_type: Option<AspectType>Required. AspectType Resource.
validate_only: boolOptional. The service validates the request without performing any mutations. The default is false.
Implementations§
Source§impl CreateAspectTypeRequest
impl CreateAspectTypeRequest
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_aspect_type_id<T: Into<String>>(self, v: T) -> Self
pub fn set_aspect_type_id<T: Into<String>>(self, v: T) -> Self
Sets the value of aspect_type_id.
Sourcepub fn set_aspect_type<T>(self, v: T) -> Selfwhere
T: Into<AspectType>,
pub fn set_aspect_type<T>(self, v: T) -> Selfwhere
T: Into<AspectType>,
Sets the value of aspect_type.
Sourcepub fn set_or_clear_aspect_type<T>(self, v: Option<T>) -> Selfwhere
T: Into<AspectType>,
pub fn set_or_clear_aspect_type<T>(self, v: Option<T>) -> Selfwhere
T: Into<AspectType>,
Sets or clears the value of aspect_type.
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 CreateAspectTypeRequest
impl Clone for CreateAspectTypeRequest
Source§fn clone(&self) -> CreateAspectTypeRequest
fn clone(&self) -> CreateAspectTypeRequest
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 CreateAspectTypeRequest
impl Debug for CreateAspectTypeRequest
Source§impl Default for CreateAspectTypeRequest
impl Default for CreateAspectTypeRequest
Source§fn default() -> CreateAspectTypeRequest
fn default() -> CreateAspectTypeRequest
Returns the “default value” for a type. Read more
Source§impl Message for CreateAspectTypeRequest
impl Message for CreateAspectTypeRequest
Source§impl PartialEq for CreateAspectTypeRequest
impl PartialEq for CreateAspectTypeRequest
impl StructuralPartialEq for CreateAspectTypeRequest
Auto Trait Implementations§
impl Freeze for CreateAspectTypeRequest
impl RefUnwindSafe for CreateAspectTypeRequest
impl Send for CreateAspectTypeRequest
impl Sync for CreateAspectTypeRequest
impl Unpin for CreateAspectTypeRequest
impl UnwindSafe for CreateAspectTypeRequest
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