pub struct GroupUserHandler { /* private fields */ }
Implementations§
Source§impl GroupUserHandler
impl GroupUserHandler
pub fn new(client: FilesClient) -> Self
pub async fn list( &self, user_id: Option<i64>, cursor: Option<String>, per_page: Option<i64>, ) -> Result<(Vec<GroupUserEntity>, PaginationInfo)>
pub async fn create( &self, group_id: i64, user_id: i64, admin: bool, ) -> Result<GroupUserEntity>
pub async fn update(&self, id: i64, admin: bool) -> Result<GroupUserEntity>
pub async fn delete(&self, id: i64) -> Result<()>
Trait Implementations§
Source§impl Clone for GroupUserHandler
impl Clone for GroupUserHandler
Source§fn clone(&self) -> GroupUserHandler
fn clone(&self) -> GroupUserHandler
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 moreAuto Trait Implementations§
impl Freeze for GroupUserHandler
impl !RefUnwindSafe for GroupUserHandler
impl Send for GroupUserHandler
impl Sync for GroupUserHandler
impl Unpin for GroupUserHandler
impl !UnwindSafe for GroupUserHandler
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