pub struct GroupHandler { /* private fields */ }
Expand description
Handler for group operations
Implementations§
Source§impl GroupHandler
impl GroupHandler
Sourcepub fn new(client: FilesClient) -> Self
pub fn new(client: FilesClient) -> Self
Creates a new GroupHandler
Sourcepub async fn list(
&self,
cursor: Option<String>,
per_page: Option<i32>,
) -> Result<(Vec<GroupEntity>, PaginationInfo)>
pub async fn list( &self, cursor: Option<String>, per_page: Option<i32>, ) -> Result<(Vec<GroupEntity>, PaginationInfo)>
Sourcepub async fn get(&self, id: i64) -> Result<GroupEntity>
pub async fn get(&self, id: i64) -> Result<GroupEntity>
Sourcepub async fn create(
&self,
name: &str,
notes: Option<&str>,
user_ids: Option<Vec<i64>>,
) -> Result<GroupEntity>
pub async fn create( &self, name: &str, notes: Option<&str>, user_ids: Option<Vec<i64>>, ) -> Result<GroupEntity>
Sourcepub async fn update(
&self,
id: i64,
name: Option<&str>,
notes: Option<&str>,
) -> Result<GroupEntity>
pub async fn update( &self, id: i64, name: Option<&str>, notes: Option<&str>, ) -> Result<GroupEntity>
Trait Implementations§
Source§impl Clone for GroupHandler
impl Clone for GroupHandler
Source§fn clone(&self) -> GroupHandler
fn clone(&self) -> GroupHandler
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 GroupHandler
impl !RefUnwindSafe for GroupHandler
impl Send for GroupHandler
impl Sync for GroupHandler
impl Unpin for GroupHandler
impl !UnwindSafe for GroupHandler
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