pub struct MetaCacheEntry {
pub name: String,
pub metadata: Vec<u8>,
pub cached: Option<FileMeta>,
pub reusable: bool,
}
Fields§
§name: String
name is the full name of the object including prefixes
metadata: Vec<u8>
Metadata. If none is present it is not an object but only a prefix. Entries without metadata will only be present in non-recursive scans.
cached: Option<FileMeta>
cached contains the metadata if decoded.
reusable: bool
Indicates the entry can be reused and only one reference to metadata is expected.
Implementations§
Source§impl MetaCacheEntry
impl MetaCacheEntry
pub fn marshal_msg(&self) -> Result<Vec<u8>>
pub fn is_dir(&self) -> bool
pub fn is_in_dir(&self, dir: &str, separator: &str) -> bool
pub fn is_object(&self) -> bool
pub fn is_object_dir(&self) -> bool
pub fn is_latest_delete_marker(&mut self) -> bool
pub fn to_fileinfo(&self, bucket: &str) -> Result<FileInfo>
pub fn file_info_versions(&self, bucket: &str) -> Result<FileInfoVersions>
pub fn matches( &self, other: Option<&MetaCacheEntry>, strict: bool, ) -> (Option<MetaCacheEntry>, bool)
pub fn xl_meta(&mut self) -> Result<FileMeta>
Trait Implementations§
Source§impl Clone for MetaCacheEntry
impl Clone for MetaCacheEntry
Source§fn clone(&self) -> MetaCacheEntry
fn clone(&self) -> MetaCacheEntry
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for MetaCacheEntry
impl Debug for MetaCacheEntry
Source§impl Default for MetaCacheEntry
impl Default for MetaCacheEntry
Source§fn default() -> MetaCacheEntry
fn default() -> MetaCacheEntry
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MetaCacheEntry
impl<'de> Deserialize<'de> for MetaCacheEntry
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
Source§impl PartialEq for MetaCacheEntry
impl PartialEq for MetaCacheEntry
Source§impl Serialize for MetaCacheEntry
impl Serialize for MetaCacheEntry
impl StructuralPartialEq for MetaCacheEntry
Auto Trait Implementations§
impl Freeze for MetaCacheEntry
impl RefUnwindSafe for MetaCacheEntry
impl Send for MetaCacheEntry
impl Sync for MetaCacheEntry
impl Unpin for MetaCacheEntry
impl UnwindSafe for MetaCacheEntry
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