pub struct ObjectMeta {
pub object_name: String,
pub bucket_name: String,
pub size: u64,
pub content_type: String,
pub etag: String,
pub user_meta: Value,
pub created_at: DateTime<Utc>,
pub updated_at: DateTime<Utc>,
}Expand description
Object 的元数据结构
Fields§
§object_name: String§bucket_name: String§size: u64§content_type: String§etag: String§user_meta: Value§created_at: DateTime<Utc>§updated_at: DateTime<Utc>Implementations§
Source§impl ObjectMeta
impl ObjectMeta
pub fn update_with(self, rhs: ObjectMeta) -> ObjectMeta
Trait Implementations§
Source§impl Debug for ObjectMeta
impl Debug for ObjectMeta
Source§impl Default for ObjectMeta
impl Default for ObjectMeta
Source§fn default() -> ObjectMeta
fn default() -> ObjectMeta
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ObjectMeta
impl<'de> Deserialize<'de> for ObjectMeta
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 ObjectMeta
impl PartialEq for ObjectMeta
Source§fn eq(&self, other: &ObjectMeta) -> bool
fn eq(&self, other: &ObjectMeta) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ObjectMeta
impl Serialize for ObjectMeta
impl StructuralPartialEq for ObjectMeta
Auto Trait Implementations§
impl Freeze for ObjectMeta
impl RefUnwindSafe for ObjectMeta
impl Send for ObjectMeta
impl Sync for ObjectMeta
impl Unpin for ObjectMeta
impl UnsafeUnpin for ObjectMeta
impl UnwindSafe for ObjectMeta
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