pub enum Metakey {
Complete,
Mode,
CacheControl,
ContentDisposition,
ContentLength,
ContentMd5,
ContentRange,
ContentType,
Etag,
LastModified,
}
Expand description
Metakey describes the metadata keys that can be stored or queried.
For store
Internally, we will store a flag set of Metakey to check whether we have set some key already.
For query
At user side, we will allow user to query the metadata. If
the meta has been stored, we will return directly. If no, we will
call stat
internally to fetch the metadata.
Variants§
Complete
The special metadata key that used to mark this entry already contains all metadata.
Mode
Key for mode.
CacheControl
Key for cache control.
ContentDisposition
Key for content disposition.
ContentLength
Key for content length.
ContentMd5
Key for content md5.
ContentRange
Key for content range.
ContentType
Key for content type.
Etag
Key for etag.
LastModified
Key for last last modified.
Trait Implementations§
source§impl PartialEq<Metakey> for Metakey
impl PartialEq<Metakey> for Metakey
impl Copy for Metakey
impl Eq for Metakey
impl StructuralEq for Metakey
impl StructuralPartialEq for Metakey
Auto Trait Implementations§
impl RefUnwindSafe for Metakey
impl Send for Metakey
impl Sync for Metakey
impl Unpin for Metakey
impl UnwindSafe for Metakey
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
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.