pub struct Collections<'a> { /* private fields */ }Implementations§
Source§impl<'a> Collections<'a>
impl<'a> Collections<'a>
Sourcepub async fn get(
&self,
collection_id: i64,
params: &GetCollectionParams,
) -> Result<Page<GetCollectionResponseContent>, Error>
pub async fn get( &self, collection_id: i64, params: &GetCollectionParams, ) -> Result<Page<GetCollectionResponseContent>, Error>
Get a collection and one page of its active, accessible threads
Sourcepub async fn list(&self) -> Result<ListCollectionsResponseContent, Error>
pub async fn list(&self) -> Result<ListCollectionsResponseContent, Error>
List collections
Source§impl Collections<'_>
impl Collections<'_>
Sourcepub async fn create(&self, params: &CreateCollectionParams) -> Result<(), Error>
pub async fn create(&self, params: &CreateCollectionParams) -> Result<(), Error>
Makes a collection.
The form post answers with a redirect to the collections index rather than to the
collection it made, so the new collection’s id does not come back.
Collections::list afterwards is how to find it.
Sourcepub async fn update_collection(
&self,
collection_id: i64,
params: &UpdateCollectionParams,
) -> Result<(), Error>
pub async fn update_collection( &self, collection_id: i64, params: &UpdateCollectionParams, ) -> Result<(), Error>
Renames a collection or changes its summary. The generated Collections::update
takes the same request as a body.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Collections<'a>
impl<'a> !UnwindSafe for Collections<'a>
impl<'a> Freeze for Collections<'a>
impl<'a> Send for Collections<'a>
impl<'a> Sync for Collections<'a>
impl<'a> Unpin for Collections<'a>
impl<'a> UnsafeUnpin for Collections<'a>
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