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