pub struct RemoteGroup { /* private fields */ }
Implementations§
source§impl RemoteGroup
impl RemoteGroup
sourcepub fn set_name<U: BnStrCompatible>(&self, name: U)
pub fn set_name<U: BnStrCompatible>(&self, name: U)
Set group name You will need to push the group to update the Remote.
sourcepub fn users(&self) -> Result<(Array<BnString>, Array<BnString>), ()>
pub fn users(&self) -> Result<(Array<BnString>, Array<BnString>), ()>
Get list of users in the group
sourcepub fn set_users<I>(&self, usernames: I) -> Result<(), ()>
pub fn set_users<I>(&self, usernames: I) -> Result<(), ()>
Set the list of users in a group by their usernames. You will need to push the group to update the Remote.
sourcepub fn contains_user<U: BnStrCompatible>(&self, username: U) -> bool
pub fn contains_user<U: BnStrCompatible>(&self, username: U) -> bool
Test if a group has a user with the given username
Trait Implementations§
source§impl CoreArrayProvider for RemoteGroup
impl CoreArrayProvider for RemoteGroup
source§impl PartialEq for RemoteGroup
impl PartialEq for RemoteGroup
source§impl ToOwned for RemoteGroup
impl ToOwned for RemoteGroup
source§type Owned = Ref<RemoteGroup>
type Owned = Ref<RemoteGroup>
The resulting type after obtaining ownership.
source§fn to_owned(&self) -> Self::Owned
fn to_owned(&self) -> Self::Owned
Creates owned data from borrowed data, usually by cloning. Read more
1.63.0 · source§fn clone_into(&self, target: &mut Self::Owned)
fn clone_into(&self, target: &mut Self::Owned)
Uses borrowed data to replace owned data, usually by cloning. Read more
impl Eq for RemoteGroup
Auto Trait Implementations§
impl Freeze for RemoteGroup
impl RefUnwindSafe for RemoteGroup
impl !Send for RemoteGroup
impl !Sync for RemoteGroup
impl Unpin for RemoteGroup
impl UnwindSafe for RemoteGroup
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