#[non_exhaustive]pub struct GroupUpdateArgs {
pub group: GroupSelector,
pub return_members: bool,
pub new_group_name: Option<String>,
pub new_group_external_id: Option<GroupExternalId>,
pub new_group_management_type: Option<GroupManagementType>,
}
Available on crate features
sync_routes
and dbx_team
only.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.group: GroupSelector
Specify a group.
return_members: bool
Whether to return the list of members in the group. Note that the default value will cause all the group members to be returned in the response. This may take a long time for large groups.
new_group_name: Option<String>
Optional argument. Set group name to this if provided.
new_group_external_id: Option<GroupExternalId>
Optional argument. New group external ID. If the argument is None, the group’s external_id won’t be updated. If the argument is empty string, the group’s external id will be cleared.
new_group_management_type: Option<GroupManagementType>
Set new group management type, if provided.
Implementations§
Source§impl GroupUpdateArgs
impl GroupUpdateArgs
pub fn new(group: GroupSelector) -> Self
pub fn with_return_members(self, value: bool) -> Self
pub fn with_new_group_name(self, value: String) -> Self
pub fn with_new_group_external_id(self, value: GroupExternalId) -> Self
pub fn with_new_group_management_type(self, value: GroupManagementType) -> Self
Trait Implementations§
Source§impl Clone for GroupUpdateArgs
impl Clone for GroupUpdateArgs
Source§fn clone(&self) -> GroupUpdateArgs
fn clone(&self) -> GroupUpdateArgs
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 GroupUpdateArgs
impl Debug for GroupUpdateArgs
Source§impl<'de> Deserialize<'de> for GroupUpdateArgs
impl<'de> Deserialize<'de> for GroupUpdateArgs
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<GroupUpdateArgs> for IncludeMembersArg
impl From<GroupUpdateArgs> for IncludeMembersArg
Source§fn from(subtype: GroupUpdateArgs) -> Self
fn from(subtype: GroupUpdateArgs) -> Self
Converts to this type from the input type.
Source§impl PartialEq for GroupUpdateArgs
impl PartialEq for GroupUpdateArgs
Source§impl Serialize for GroupUpdateArgs
impl Serialize for GroupUpdateArgs
impl Eq for GroupUpdateArgs
impl StructuralPartialEq for GroupUpdateArgs
Auto Trait Implementations§
impl Freeze for GroupUpdateArgs
impl RefUnwindSafe for GroupUpdateArgs
impl Send for GroupUpdateArgs
impl Sync for GroupUpdateArgs
impl Unpin for GroupUpdateArgs
impl UnwindSafe for GroupUpdateArgs
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.