#[non_exhaustive]pub struct CreateContactRequest {
pub parent: String,
pub contact: Option<Contact>,
/* private fields */
}Expand description
Request message for the CreateContact method.
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 to save this contact for. Format: organizations/{organization_id}, folders/{folder_id} or projects/{project_id}
contact: Option<Contact>Required. The contact to create. Must specify an email address and language tag.
Implementations§
Source§impl CreateContactRequest
impl CreateContactRequest
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_contact<T>(self, v: T) -> Self
pub fn set_contact<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_contact<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_contact<T>(self, v: Option<T>) -> Self
Trait Implementations§
Source§impl Clone for CreateContactRequest
impl Clone for CreateContactRequest
Source§fn clone(&self) -> CreateContactRequest
fn clone(&self) -> CreateContactRequest
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 CreateContactRequest
impl Debug for CreateContactRequest
Source§impl Default for CreateContactRequest
impl Default for CreateContactRequest
Source§fn default() -> CreateContactRequest
fn default() -> CreateContactRequest
Returns the “default value” for a type. Read more
Source§impl Message for CreateContactRequest
impl Message for CreateContactRequest
Source§impl PartialEq for CreateContactRequest
impl PartialEq for CreateContactRequest
impl StructuralPartialEq for CreateContactRequest
Auto Trait Implementations§
impl Freeze for CreateContactRequest
impl RefUnwindSafe for CreateContactRequest
impl Send for CreateContactRequest
impl Sync for CreateContactRequest
impl Unpin for CreateContactRequest
impl UnsafeUnpin for CreateContactRequest
impl UnwindSafe for CreateContactRequest
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