pub struct KeyStore { /* private fields */ }Expand description
Un-versioned key store. Each key maps to exactly one S3Object.
Implementations§
Source§impl KeyStore
impl KeyStore
Sourcepub fn put(&mut self, object: S3Object) -> Option<S3Object>
pub fn put(&mut self, object: S3Object) -> Option<S3Object>
Insert or replace an object. Returns the previous object if any.
Sourcepub fn get_mut(&mut self, key: &str) -> Option<&mut S3Object>
pub fn get_mut(&mut self, key: &str) -> Option<&mut S3Object>
Get a mutable reference to an object by key.
Sourcepub fn delete(&mut self, key: &str) -> Option<S3Object>
pub fn delete(&mut self, key: &str) -> Option<S3Object>
Remove an object by key. Returns the removed object if any.
Sourcepub fn list_objects(
&self,
prefix: &str,
delimiter: &str,
start_after: &str,
max_keys: usize,
) -> ListResult
pub fn list_objects( &self, prefix: &str, delimiter: &str, start_after: &str, max_keys: usize, ) -> ListResult
List objects matching prefix, delimiter, start-after, and max-keys.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for KeyStore
impl RefUnwindSafe for KeyStore
impl Send for KeyStore
impl Sync for KeyStore
impl Unpin for KeyStore
impl UnsafeUnpin for KeyStore
impl UnwindSafe for KeyStore
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