pub struct ObjectMeta {
pub key: String,
pub last_modified: String,
pub etag: String,
pub size: u64,
pub storage_class: String,
}Expand description
obs对象的元数据信息
这个结构体用于表示 OBS 对象的元数据,包含对象的各种属性,如名称、修改时间、内容标识、大小以及存储类型。
Fields§
§key: String对象名
唯一标识 OBS 存储中的对象
last_modified: String对象最近一次被修改的时间(UTC时间)
该时间戳表示对象在 OBS 存储中最后一次被修改的时刻,采用 UTC 时间格式。
etag: String对象的base64编码的128位MD5摘要
这个 ETag 值是对象内容的唯一标识,可以通过该值识别对象内容是否有变化。
size: u64对象的字节数
表示对象在存储中占用的字节大小
storage_class: String对象的存储类型:STANDARD,WARM,COLD,DEEP_ARCHIVE
不同的存储类型对应不同的存储成本和访问性能,用户可以根据对象的访问频率等因素选择合适的存储类型
Trait Implementations§
Source§impl Debug for ObjectMeta
impl Debug for ObjectMeta
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
Auto Trait Implementations§
impl Freeze for ObjectMeta
impl RefUnwindSafe for ObjectMeta
impl Send for ObjectMeta
impl Sync for ObjectMeta
impl Unpin 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