pub struct DatasetCollectionClient { /* private fields */ }Expand description
Client for listing datasets and getting-or-creating a dataset by name.
Implementations§
Source§impl DatasetCollectionClient
impl DatasetCollectionClient
Sourcepub async fn list(
&self,
options: StorageListOptions,
) -> ApifyClientResult<PaginationList<Dataset>>
pub async fn list( &self, options: StorageListOptions, ) -> ApifyClientResult<PaginationList<Dataset>>
Lists datasets with offset/limit pagination, optionally filtering by unnamed/ownership.
Sourcepub async fn get_or_create(
&self,
name: Option<&str>,
) -> ApifyClientResult<Dataset>
pub async fn get_or_create( &self, name: Option<&str>, ) -> ApifyClientResult<Dataset>
Gets the dataset with the given name, creating it if it does not exist.
Passing None for name creates an unnamed dataset.
Trait Implementations§
Source§impl Clone for DatasetCollectionClient
impl Clone for DatasetCollectionClient
Source§fn clone(&self) -> DatasetCollectionClient
fn clone(&self) -> DatasetCollectionClient
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 !RefUnwindSafe for DatasetCollectionClient
impl !UnwindSafe for DatasetCollectionClient
impl Freeze for DatasetCollectionClient
impl Send for DatasetCollectionClient
impl Sync for DatasetCollectionClient
impl Unpin for DatasetCollectionClient
impl UnsafeUnpin for DatasetCollectionClient
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