pub struct CurrentUserHandler { /* private fields */ }
Implementations§
Source§impl CurrentUserHandler
impl CurrentUserHandler
pub fn new(client: FilesClient) -> Self
pub async fn get_current(&self) -> Result<UserEntity>
pub async fn update(&self, params: Value) -> Result<UserEntity>
pub async fn unlock(&self, id: i64) -> Result<()>
pub async fn resend_verification(&self, id: i64) -> Result<()>
pub async fn get_2fa_status(&self, id: i64) -> Result<UserEntity>
pub async fn update_2fa(&self, id: i64, params: Value) -> Result<UserEntity>
Auto Trait Implementations§
impl Freeze for CurrentUserHandler
impl !RefUnwindSafe for CurrentUserHandler
impl Send for CurrentUserHandler
impl Sync for CurrentUserHandler
impl Unpin for CurrentUserHandler
impl !UnwindSafe for CurrentUserHandler
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