#[non_exhaustive]pub struct UpdateParticipantRequest {
pub participant: Option<Participant>,
pub update_mask: Option<FieldMask>,
/* private fields */
}Available on crate feature
participants only.Expand description
The request message for Participants.UpdateParticipant.
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.participant: Option<Participant>Required. The participant to update.
update_mask: Option<FieldMask>Required. The mask to specify which fields to update.
Implementations§
Source§impl UpdateParticipantRequest
impl UpdateParticipantRequest
pub fn new() -> Self
Sourcepub fn set_participant<T>(self, v: T) -> Selfwhere
T: Into<Participant>,
pub fn set_participant<T>(self, v: T) -> Selfwhere
T: Into<Participant>,
Sets the value of participant.
§Example
ⓘ
use google_cloud_dialogflow_v2::model::Participant;
let x = UpdateParticipantRequest::new().set_participant(Participant::default()/* use setters */);Sourcepub fn set_or_clear_participant<T>(self, v: Option<T>) -> Selfwhere
T: Into<Participant>,
pub fn set_or_clear_participant<T>(self, v: Option<T>) -> Selfwhere
T: Into<Participant>,
Sets or clears the value of participant.
§Example
ⓘ
use google_cloud_dialogflow_v2::model::Participant;
let x = UpdateParticipantRequest::new().set_or_clear_participant(Some(Participant::default()/* use setters */));
let x = UpdateParticipantRequest::new().set_or_clear_participant(None::<Participant>);Sourcepub fn set_update_mask<T>(self, v: T) -> Self
pub fn set_update_mask<T>(self, v: T) -> Self
Sets the value of update_mask.
§Example
ⓘ
use wkt::FieldMask;
let x = UpdateParticipantRequest::new().set_update_mask(FieldMask::default()/* use setters */);Sourcepub fn set_or_clear_update_mask<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_update_mask<T>(self, v: Option<T>) -> Self
Sets or clears the value of update_mask.
§Example
ⓘ
use wkt::FieldMask;
let x = UpdateParticipantRequest::new().set_or_clear_update_mask(Some(FieldMask::default()/* use setters */));
let x = UpdateParticipantRequest::new().set_or_clear_update_mask(None::<FieldMask>);Trait Implementations§
Source§impl Clone for UpdateParticipantRequest
impl Clone for UpdateParticipantRequest
Source§fn clone(&self) -> UpdateParticipantRequest
fn clone(&self) -> UpdateParticipantRequest
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 UpdateParticipantRequest
impl Debug for UpdateParticipantRequest
Source§impl Default for UpdateParticipantRequest
impl Default for UpdateParticipantRequest
Source§fn default() -> UpdateParticipantRequest
fn default() -> UpdateParticipantRequest
Returns the “default value” for a type. Read more
Source§impl Message for UpdateParticipantRequest
impl Message for UpdateParticipantRequest
Source§impl PartialEq for UpdateParticipantRequest
impl PartialEq for UpdateParticipantRequest
impl StructuralPartialEq for UpdateParticipantRequest
Auto Trait Implementations§
impl Freeze for UpdateParticipantRequest
impl RefUnwindSafe for UpdateParticipantRequest
impl Send for UpdateParticipantRequest
impl Sync for UpdateParticipantRequest
impl Unpin for UpdateParticipantRequest
impl UnwindSafe for UpdateParticipantRequest
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