pub struct Client { /* private fields */ }Implementations§
Source§impl Client
impl Client
pub fn new() -> Self
pub fn oauth(&self) -> &OAuth
pub fn get_current_user(&self) -> Result<Value>
Sourcepub fn revoke_current_user(&self)
pub fn revoke_current_user(&self)
Best-effort revoke; ignores body and errors (matches official CLI).
pub fn list_files(&self, page: u32, page_size: u32) -> Result<FilesPage>
pub fn get_file(&self, id: &str) -> Result<FileDetail>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Client
impl RefUnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnsafeUnpin for Client
impl UnwindSafe for Client
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