pub struct Entry { /* private fields */ }
Expand description
Entry is returned by Page
or BlockingPage
during list operations.
Implementations§
source§impl Entry
impl Entry
sourcepub fn new(path: &str, meta: ObjectMetadata) -> Entry
pub fn new(path: &str, meta: ObjectMetadata) -> Entry
Create a new object entry by its corresponding underlying storage.
sourcepub fn with(path: String, meta: ObjectMetadata) -> Entry
pub fn with(path: String, meta: ObjectMetadata) -> Entry
Create a new object entry with given value.
sourcepub fn set_mode(&mut self, mode: ObjectMode) -> &mut Self
pub fn set_mode(&mut self, mode: ObjectMode) -> &mut Self
sourcepub fn mode(&self) -> ObjectMode
pub fn mode(&self) -> ObjectMode
Get entry’s object mode.
sourcepub fn into_object(self, op: Operator) -> Object
pub fn into_object(self, op: Operator) -> Object
Consume to convert into an object.
Trait Implementations§
source§impl PartialEq<Entry> for Entry
impl PartialEq<Entry> for Entry
impl Eq for Entry
impl StructuralEq for Entry
impl StructuralPartialEq for Entry
Auto Trait Implementations§
impl RefUnwindSafe for Entry
impl Send for Entry
impl Sync for Entry
impl Unpin for Entry
impl UnwindSafe for Entry
Blanket Implementations§
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.