#[non_exhaustive]pub struct UpdateEnrollmentRequest {
pub enrollment: Option<Enrollment>,
pub update_mask: Option<FieldMask>,
pub allow_missing: bool,
pub validate_only: bool,
/* private fields */
}Expand description
The request message for the UpdateEnrollment 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.enrollment: Option<Enrollment>Required. The Enrollment to be updated.
update_mask: Option<FieldMask>Optional. The fields to be updated; only fields explicitly provided are updated. If no field mask is provided, all provided fields in the request are updated. To update all fields, provide a field mask of “*”.
allow_missing: boolOptional. If set to true, and the Enrollment is not found, a new Enrollment
will be created. In this situation, update_mask is ignored.
validate_only: boolOptional. If set, validate the request and preview the review, but do not post it.
Implementations§
Source§impl UpdateEnrollmentRequest
impl UpdateEnrollmentRequest
pub fn new() -> Self
Sourcepub fn set_enrollment<T>(self, v: T) -> Selfwhere
T: Into<Enrollment>,
pub fn set_enrollment<T>(self, v: T) -> Selfwhere
T: Into<Enrollment>,
Sets the value of enrollment.
Sourcepub fn set_or_clear_enrollment<T>(self, v: Option<T>) -> Selfwhere
T: Into<Enrollment>,
pub fn set_or_clear_enrollment<T>(self, v: Option<T>) -> Selfwhere
T: Into<Enrollment>,
Sets or clears the value of enrollment.
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.
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.
Sourcepub fn set_allow_missing<T: Into<bool>>(self, v: T) -> Self
pub fn set_allow_missing<T: Into<bool>>(self, v: T) -> Self
Sets the value of allow_missing.
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 UpdateEnrollmentRequest
impl Clone for UpdateEnrollmentRequest
Source§fn clone(&self) -> UpdateEnrollmentRequest
fn clone(&self) -> UpdateEnrollmentRequest
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 UpdateEnrollmentRequest
impl Debug for UpdateEnrollmentRequest
Source§impl Default for UpdateEnrollmentRequest
impl Default for UpdateEnrollmentRequest
Source§fn default() -> UpdateEnrollmentRequest
fn default() -> UpdateEnrollmentRequest
Returns the “default value” for a type. Read more
Source§impl Message for UpdateEnrollmentRequest
impl Message for UpdateEnrollmentRequest
Source§impl PartialEq for UpdateEnrollmentRequest
impl PartialEq for UpdateEnrollmentRequest
impl StructuralPartialEq for UpdateEnrollmentRequest
Auto Trait Implementations§
impl Freeze for UpdateEnrollmentRequest
impl RefUnwindSafe for UpdateEnrollmentRequest
impl Send for UpdateEnrollmentRequest
impl Sync for UpdateEnrollmentRequest
impl Unpin for UpdateEnrollmentRequest
impl UnwindSafe for UpdateEnrollmentRequest
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