pub struct CollectionHandler { /* private fields */ }Expand description
Handler for Collection methods
Implementations§
Source§impl CollectionHandler
impl CollectionHandler
Sourcepub fn new(client: Client) -> Self
pub fn new(client: Client) -> Self
Creates a new CollectionHandler with a Client instance
Sourcepub async fn create(
&self,
alias: Option<String>,
title: Option<String>,
) -> Result<Collection, ApiError>
pub async fn create( &self, alias: Option<String>, title: Option<String>, ) -> Result<Collection, ApiError>
Creates a new Collection. At least one of alias and title must be specified.
Sourcepub async fn get(&self, alias: &str) -> Result<Collection, ApiError>
pub async fn get(&self, alias: &str) -> Result<Collection, ApiError>
Retrieves a Collection by its alias.
Trait Implementations§
Source§impl Clone for CollectionHandler
impl Clone for CollectionHandler
Source§fn clone(&self) -> CollectionHandler
fn clone(&self) -> CollectionHandler
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 CollectionHandler
impl RefUnwindSafe for CollectionHandler
impl Send for CollectionHandler
impl Sync for CollectionHandler
impl Unpin for CollectionHandler
impl UnwindSafe for CollectionHandler
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