pub struct ObjectMetadata {Show 17 fields
pub content_type: Option<String>,
pub content_encoding: Option<String>,
pub content_disposition: Option<String>,
pub content_language: Option<String>,
pub cache_control: Option<String>,
pub expires: Option<String>,
pub user_metadata: HashMap<String, String>,
pub sse_algorithm: Option<String>,
pub sse_kms_key_id: Option<String>,
pub sse_bucket_key_enabled: Option<bool>,
pub sse_customer_algorithm: Option<String>,
pub sse_customer_key_md5: Option<String>,
pub tagging: Vec<(String, String)>,
pub acl: CannedAcl,
pub object_lock_mode: Option<String>,
pub object_lock_retain_until: Option<DateTime<Utc>>,
pub object_lock_legal_hold: Option<bool>,
}Expand description
Metadata associated with an S3 object.
Includes standard HTTP headers, user-defined metadata (x-amz-meta-*),
server-side encryption settings, tagging, ACL, and object-lock fields.
Fields§
§content_type: Option<String>The MIME type of the object (e.g. application/octet-stream).
content_encoding: Option<String>Content encoding (e.g. gzip).
content_disposition: Option<String>Content disposition (e.g. attachment; filename="file.txt").
content_language: Option<String>Content language (e.g. en-US).
cache_control: Option<String>Cache control directives (e.g. max-age=3600).
expires: Option<String>Expiration date/time string.
user_metadata: HashMap<String, String>User-defined metadata headers (x-amz-meta-*).
sse_algorithm: Option<String>Server-side encryption algorithm (e.g. AES256, aws:kms).
sse_kms_key_id: Option<String>KMS key ID used for server-side encryption.
sse_bucket_key_enabled: Option<bool>Whether an S3 Bucket Key is enabled for SSE-KMS.
sse_customer_algorithm: Option<String>Customer-provided encryption algorithm for SSE-C.
sse_customer_key_md5: Option<String>Base64-encoded MD5 of the customer-provided encryption key.
tagging: Vec<(String, String)>Object tags as key-value pairs.
acl: CannedAclCanned ACL applied to this object.
object_lock_mode: Option<String>Object lock retention mode (GOVERNANCE or COMPLIANCE).
object_lock_retain_until: Option<DateTime<Utc>>Object lock retain-until date.
object_lock_legal_hold: Option<bool>Whether a legal hold is in effect for this object.
Trait Implementations§
Source§impl Clone for ObjectMetadata
impl Clone for ObjectMetadata
Source§fn clone(&self) -> ObjectMetadata
fn clone(&self) -> ObjectMetadata
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more