pub struct KeyValueStoreCollectionClient { /* private fields */ }Expand description
Client for listing key-value stores and getting-or-creating one by name.
Implementations§
Source§impl KeyValueStoreCollectionClient
impl KeyValueStoreCollectionClient
Sourcepub async fn list(
&self,
options: StorageListOptions,
) -> ApifyClientResult<PaginationList<KeyValueStore>>
pub async fn list( &self, options: StorageListOptions, ) -> ApifyClientResult<PaginationList<KeyValueStore>>
Lists key-value stores with offset/limit pagination, optionally filtering by
unnamed/ownership.
Sourcepub async fn get_or_create(
&self,
name: Option<&str>,
) -> ApifyClientResult<KeyValueStore>
pub async fn get_or_create( &self, name: Option<&str>, ) -> ApifyClientResult<KeyValueStore>
Gets the store with the given name, creating it if it does not exist.
Trait Implementations§
Source§impl Clone for KeyValueStoreCollectionClient
impl Clone for KeyValueStoreCollectionClient
Source§fn clone(&self) -> KeyValueStoreCollectionClient
fn clone(&self) -> KeyValueStoreCollectionClient
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 KeyValueStoreCollectionClient
impl !UnwindSafe for KeyValueStoreCollectionClient
impl Freeze for KeyValueStoreCollectionClient
impl Send for KeyValueStoreCollectionClient
impl Sync for KeyValueStoreCollectionClient
impl Unpin for KeyValueStoreCollectionClient
impl UnsafeUnpin for KeyValueStoreCollectionClient
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