pub struct Purged {
pub deleted: Vec<String>,
pub cursor: Option<String>,
}Expand description
What one purge_unattached call did: the keys it deleted, and where the next call resumes.
§Examples
let purged = ocre::storage::Purged { deleted: vec!["uploads/a".into()], cursor: None };
assert_eq!(purged.deleted.len(), 1);Fields§
§deleted: Vec<String>Keys deleted by this call.
cursor: Option<String>Cursor of the next page of the listing; None once the prefix was listed to the end.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Purged
impl<'de> Deserialize<'de> for Purged
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Purged
impl StructuralPartialEq for Purged
Auto Trait Implementations§
impl Freeze for Purged
impl RefUnwindSafe for Purged
impl Send for Purged
impl Sync for Purged
impl Unpin for Purged
impl UnsafeUnpin for Purged
impl UnwindSafe for Purged
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.