pub struct StorageEvent {Show 13 fields
pub event_type: StorageEventType,
pub bucket_name: String,
pub object_key: String,
pub timestamp: DateTime<Utc>,
pub size: Option<u64>,
pub etag: Option<String>,
pub content_type: Option<String>,
pub metadata: HashMap<String, String>,
pub copy_source: Option<String>,
pub previous_tier: Option<String>,
pub current_tier: Option<String>,
pub region: Option<String>,
pub version_id: Option<String>,
}Expand description
Represents an event triggered by an action in an object storage service.
This struct provides a generic representation for events from services like AWS S3, Google Cloud Storage (GCS), and Azure Blob Storage.
Fields§
§event_type: StorageEventTypeThe type of storage event.
bucket_name: StringThe name of the bucket or container where the event occurred.
object_key: StringThe key or path of the object involved in the event.
timestamp: DateTime<Utc>The timestamp when the event occurred.
size: Option<u64>Optional size of the object in bytes.
etag: Option<String>Optional ETag or hash of the object content.
content_type: Option<String>Optional content type (MIME type) of the object.
metadata: HashMap<String, String>Optional metadata associated with the object.
copy_source: Option<String>Optional information about the source object for copy events.
previous_tier: Option<String>Optional previous storage tier for TierChanged or Restored events.
current_tier: Option<String>Optional current storage tier for TierChanged or Restored events.
region: Option<String>Optional region where the event originated.
version_id: Option<String>Optional version or sequencer identifier for the event or object state.
Trait Implementations§
Source§impl Clone for StorageEvent
impl Clone for StorageEvent
Source§fn clone(&self) -> StorageEvent
fn clone(&self) -> StorageEvent
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more