pub struct ObjectItem {
pub etag: Option<String>,
pub is_dir: Option<bool>,
pub key: Option<String>,
pub last_modified: Option<i32>,
pub size: Option<i32>,
}Fields§
§etag: Option<String>ETag is the store’s entity tag for the bytes currently at this key, with the quotes the store wraps it in stripped. It is an opaque VERSION and not a checksum to verify against: a single-part upload’s tag happens to be the MD5 of the content and a multipart upload’s is not, and nothing here says which this was. Compare two reads of one key to learn whether the object changed; absent for a folder entry, and for an object the store reports none for.
is_dir: Option<bool>true for a folder (common prefix)
key: Option<String>key RELATIVE to the requested prefix
last_modified: Option<i32>unix seconds (0 for a folder)
size: Option<i32>bytes (0 for a folder)
Implementations§
Source§impl ObjectItem
impl ObjectItem
pub fn new() -> ObjectItem
Trait Implementations§
Source§impl Clone for ObjectItem
impl Clone for ObjectItem
Source§fn clone(&self) -> ObjectItem
fn clone(&self) -> ObjectItem
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ObjectItem
impl Debug for ObjectItem
Source§impl Default for ObjectItem
impl Default for ObjectItem
Source§fn default() -> ObjectItem
fn default() -> ObjectItem
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ObjectItem
impl<'de> Deserialize<'de> for ObjectItem
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 ObjectItem
impl PartialEq for ObjectItem
Source§impl Serialize for ObjectItem
impl Serialize for ObjectItem
impl StructuralPartialEq for ObjectItem
Auto Trait Implementations§
impl Freeze for ObjectItem
impl RefUnwindSafe for ObjectItem
impl Send for ObjectItem
impl Sync for ObjectItem
impl Unpin for ObjectItem
impl UnsafeUnpin for ObjectItem
impl UnwindSafe for ObjectItem
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