#[non_exhaustive]pub struct ReadMetadata {
pub content_type: String,
pub content_encoding: Option<String>,
pub expiration: Option<String>,
pub origin: Option<String>,
pub filename: Option<String>,
pub custom: BTreeMap<String, String>,
pub time_created: Option<Rfc3339Timestamp>,
pub time_expires: Option<Rfc3339Timestamp>,
pub size: Option<usize>,
}Expand description
Metadata of an existing object, as returned in JSON.
Values use their header syntax, for example "zstd" or "ttl:30d", and timestamps are RFC
3339. Unset fields are omitted. Unknown fields are ignored.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.content_type: String§content_encoding: Option<String>§expiration: Option<String>§origin: Option<String>See Metadata::origin.
filename: Option<String>See Metadata::filename.
custom: BTreeMap<String, String>See Metadata::custom.
time_created: Option<Rfc3339Timestamp>§time_expires: Option<Rfc3339Timestamp>§size: Option<usize>See Metadata::size.
Trait Implementations§
Source§impl Clone for ReadMetadata
impl Clone for ReadMetadata
Source§impl Debug for ReadMetadata
impl Debug for ReadMetadata
Source§impl<'de> Deserialize<'de> for ReadMetadata
impl<'de> Deserialize<'de> for ReadMetadata
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 ReadMetadata
Source§impl From<Metadata> for ReadMetadata
impl From<Metadata> for ReadMetadata
Source§impl PartialEq for ReadMetadata
impl PartialEq for ReadMetadata
Source§impl Serialize for ReadMetadata
impl Serialize for ReadMetadata
impl StructuralPartialEq for ReadMetadata
Auto Trait Implementations§
impl Freeze for ReadMetadata
impl RefUnwindSafe for ReadMetadata
impl Send for ReadMetadata
impl Sync for ReadMetadata
impl Unpin for ReadMetadata
impl UnsafeUnpin for ReadMetadata
impl UnwindSafe for ReadMetadata
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