#[non_exhaustive]pub struct CreateAnnotationRequest {
pub parent: String,
pub annotation: Option<Annotation>,
pub request_id: String,
/* private fields */
}Expand description
Message for creating an AnnotationS.
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. Name of the parent (project+location).
annotation: Option<Annotation>Required. The resource being created.
request_id: StringOptional. An optional request ID to identify requests.
Implementations§
Source§impl CreateAnnotationRequest
impl CreateAnnotationRequest
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_annotation<T>(self, v: T) -> Selfwhere
T: Into<Annotation>,
pub fn set_annotation<T>(self, v: T) -> Selfwhere
T: Into<Annotation>,
Sets the value of annotation.
§Example
ⓘ
use google_cloud_rapidmigrationassessment_v1::model::Annotation;
let x = CreateAnnotationRequest::new().set_annotation(Annotation::default()/* use setters */);Sourcepub fn set_or_clear_annotation<T>(self, v: Option<T>) -> Selfwhere
T: Into<Annotation>,
pub fn set_or_clear_annotation<T>(self, v: Option<T>) -> Selfwhere
T: Into<Annotation>,
Sets or clears the value of annotation.
§Example
ⓘ
use google_cloud_rapidmigrationassessment_v1::model::Annotation;
let x = CreateAnnotationRequest::new().set_or_clear_annotation(Some(Annotation::default()/* use setters */));
let x = CreateAnnotationRequest::new().set_or_clear_annotation(None::<Annotation>);Sourcepub fn set_request_id<T: Into<String>>(self, v: T) -> Self
pub fn set_request_id<T: Into<String>>(self, v: T) -> Self
Sets the value of request_id.
§Example
ⓘ
let x = CreateAnnotationRequest::new().set_request_id("example");Trait Implementations§
Source§impl Clone for CreateAnnotationRequest
impl Clone for CreateAnnotationRequest
Source§fn clone(&self) -> CreateAnnotationRequest
fn clone(&self) -> CreateAnnotationRequest
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 CreateAnnotationRequest
impl Debug for CreateAnnotationRequest
Source§impl Default for CreateAnnotationRequest
impl Default for CreateAnnotationRequest
Source§fn default() -> CreateAnnotationRequest
fn default() -> CreateAnnotationRequest
Returns the “default value” for a type. Read more
Source§impl Message for CreateAnnotationRequest
impl Message for CreateAnnotationRequest
Source§impl PartialEq for CreateAnnotationRequest
impl PartialEq for CreateAnnotationRequest
impl StructuralPartialEq for CreateAnnotationRequest
Auto Trait Implementations§
impl Freeze for CreateAnnotationRequest
impl RefUnwindSafe for CreateAnnotationRequest
impl Send for CreateAnnotationRequest
impl Sync for CreateAnnotationRequest
impl Unpin for CreateAnnotationRequest
impl UnsafeUnpin for CreateAnnotationRequest
impl UnwindSafe for CreateAnnotationRequest
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