pub struct ObjectHead {Show 13 fields
pub content_length: Option<i64>,
pub content_type: Option<String>,
pub last_modified: Option<i64>,
pub etag: Option<String>,
pub version_id: Option<String>,
pub storage_class: Option<String>,
pub server_side_encryption: Option<String>,
pub sse_kms_key_id: Option<String>,
pub content_encoding: Option<String>,
pub content_disposition: Option<String>,
pub cache_control: Option<String>,
pub expires: Option<i64>,
pub metadata: HashMap<String, String>,
}Expand description
All properties returned by HeadObject for a single S3 object.
User-defined metadata (x-amz-meta-*) is surfaced in metadata.
All fields are optional — not every object or provider returns every header.
Fields§
§content_length: Option<i64>Object size in bytes.
content_type: Option<String>MIME type, e.g. "application/octet-stream".
last_modified: Option<i64>RFC 2822 last-modified timestamp as a Unix epoch (seconds).
etag: Option<String>HTTP ETag string (including surrounding quotes from S3).
version_id: Option<String>Version ID if the bucket has versioning enabled.
storage_class: Option<String>S3 storage class, e.g. "STANDARD", "GLACIER".
server_side_encryption: Option<String>Server-side encryption algorithm, e.g. "aws:kms" or "AES256".
sse_kms_key_id: Option<String>KMS key ID when SSE-KMS is active.
content_encoding: Option<String>Content-Encoding header value, e.g. "gzip".
content_disposition: Option<String>Content-Disposition header value.
cache_control: Option<String>Cache-Control header value.
expires: Option<i64>Expires header as Unix epoch (seconds), if present.
metadata: HashMap<String, String>User-defined metadata (keys stripped of the x-amz-meta- prefix).
Trait Implementations§
Source§impl Clone for ObjectHead
impl Clone for ObjectHead
Source§fn clone(&self) -> ObjectHead
fn clone(&self) -> ObjectHead
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ObjectHead
impl Debug for ObjectHead
Source§impl<'de> Deserialize<'de> for ObjectHead
impl<'de> Deserialize<'de> for ObjectHead
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>,
Source§impl PartialEq for ObjectHead
impl PartialEq for ObjectHead
Source§impl Serialize for ObjectHead
impl Serialize for ObjectHead
impl StructuralPartialEq for ObjectHead
Auto Trait Implementations§
impl Freeze for ObjectHead
impl RefUnwindSafe for ObjectHead
impl Send for ObjectHead
impl Sync for ObjectHead
impl Unpin for ObjectHead
impl UnsafeUnpin for ObjectHead
impl UnwindSafe for ObjectHead
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
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>
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>
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 more