pub struct UserHandler { /* private fields */ }Expand description
Handler for User methods
Implementations§
Source§impl UserHandler
impl UserHandler
Sourcepub async fn new(client: Client) -> Self
pub async fn new(client: Client) -> Self
Creates a new UserHandler instance, and preloads the authenticated user info if available.
Sourcepub async fn collections(&self) -> Result<Vec<Collection>, ApiError>
pub async fn collections(&self) -> Result<Vec<Collection>, ApiError>
Returns all Collections associated with the authenticated User
Sourcepub async fn collection(&self, alias: &str) -> Result<Collection, ApiError>
pub async fn collection(&self, alias: &str) -> Result<Collection, ApiError>
Returns the specified Collection
Trait Implementations§
Source§impl Clone for UserHandler
impl Clone for UserHandler
Source§fn clone(&self) -> UserHandler
fn clone(&self) -> UserHandler
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 UserHandler
impl RefUnwindSafe for UserHandler
impl Send for UserHandler
impl Sync for UserHandler
impl Unpin for UserHandler
impl UnwindSafe for UserHandler
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