pub struct ObjectEntry {
pub key: String,
pub size: u64,
pub last_modified: Option<i64>,
pub etag: Option<String>,
pub storage_class: Option<String>,
pub is_prefix: bool,
}Expand description
A single item returned by ListObjectsV2.
Both real objects (Contents) and virtual folder prefixes
(CommonPrefixes) are mapped into this type. is_prefix = true
marks virtual folders so the frontend handles one flat array.
OCP: adding versions, tags, or checksum later is non-breaking.
Fields§
§key: StringFull S3 key for objects; the common-prefix string for virtual folders.
size: u64Object size in bytes. Always 0 for virtual-folder prefix entries.
last_modified: Option<i64>Last-modified Unix timestamp in milliseconds. None for prefix entries.
etag: Option<String>S3 ETag string (usually an MD5 hex or multipart hash). None for
prefix entries and objects where S3 did not return an ETag.
storage_class: Option<String>S3 storage class (STANDARD, GLACIER, …). None for prefix entries.
is_prefix: booltrue when this entry represents a CommonPrefixes virtual folder.
Trait Implementations§
Source§impl Clone for ObjectEntry
impl Clone for ObjectEntry
Source§fn clone(&self) -> ObjectEntry
fn clone(&self) -> ObjectEntry
Returns a duplicate of the value. Read more
1.0.0 · 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 ObjectEntry
impl Debug for ObjectEntry
Source§impl<'de> Deserialize<'de> for ObjectEntry
impl<'de> Deserialize<'de> for ObjectEntry
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 ObjectEntry
impl RefUnwindSafe for ObjectEntry
impl Send for ObjectEntry
impl Sync for ObjectEntry
impl Unpin for ObjectEntry
impl UnsafeUnpin for ObjectEntry
impl UnwindSafe for ObjectEntry
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<'de, D, R> CommandArg<'de, R> for Dwhere
D: Deserialize<'de>,
R: Runtime,
impl<'de, D, R> CommandArg<'de, R> for Dwhere
D: Deserialize<'de>,
R: Runtime,
§fn from_command(command: CommandItem<'de, R>) -> Result<D, InvokeError>
fn from_command(command: CommandItem<'de, R>) -> Result<D, InvokeError>
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreCreates a shared type from an unshared type.