pub struct ModifyMembershipRolesRequest {
pub add_roles: Option<Vec<MembershipRole>>,
pub remove_roles: Option<Vec<String>>,
pub update_roles_params: Option<Vec<UpdateMembershipRolesParams>>,
}
Expand description
The request message for MembershipsService.ModifyMembershipRoles.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
Fields§
§add_roles: Option<Vec<MembershipRole>>
The MembershipRole
s to be added. Adding or removing roles in the same request as updating roles is not supported. Must not be set if update_roles_params
is set.
remove_roles: Option<Vec<String>>
The name
s of the MembershipRole
s to be removed. Adding or removing roles in the same request as updating roles is not supported. It is not possible to remove the MEMBER
MembershipRole
. If you wish to delete a Membership
, call MembershipsService.DeleteMembership instead. Must not contain MEMBER
. Must not be set if update_roles_params
is set.
update_roles_params: Option<Vec<UpdateMembershipRolesParams>>
The MembershipRole
s to be updated. Updating roles in the same request as adding or removing roles is not supported. Must not be set if either add_roles
or remove_roles
is set.
Trait Implementations§
Source§impl Clone for ModifyMembershipRolesRequest
impl Clone for ModifyMembershipRolesRequest
Source§fn clone(&self) -> ModifyMembershipRolesRequest
fn clone(&self) -> ModifyMembershipRolesRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for ModifyMembershipRolesRequest
impl Debug for ModifyMembershipRolesRequest
Source§impl Default for ModifyMembershipRolesRequest
impl Default for ModifyMembershipRolesRequest
Source§fn default() -> ModifyMembershipRolesRequest
fn default() -> ModifyMembershipRolesRequest
Source§impl<'de> Deserialize<'de> for ModifyMembershipRolesRequest
impl<'de> Deserialize<'de> for ModifyMembershipRolesRequest
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl RequestValue for ModifyMembershipRolesRequest
Auto Trait Implementations§
impl Freeze for ModifyMembershipRolesRequest
impl RefUnwindSafe for ModifyMembershipRolesRequest
impl Send for ModifyMembershipRolesRequest
impl Sync for ModifyMembershipRolesRequest
impl Unpin for ModifyMembershipRolesRequest
impl UnwindSafe for ModifyMembershipRolesRequest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more