pub struct Bucket {
pub id: String,
pub name: String,
pub crn: String,
pub acl: String,
pub versioning: BucketVersioning,
pub deletion_protection: bool,
pub recovery_window_days: i64,
pub deleted_at: Nullable<String>,
pub scheduled_purge_at: Option<String>,
pub created_at: String,
}Fields§
§id: String§name: StringResource names must not start with the literal crn: prefix or be UUIDs (canonical, compact, braced, or urn:uuid: forms, in either case).
crn: String§acl: String§versioning: BucketVersioningVersioning state. suspended means versioning was on and was turned off — existing versions are kept, new writes stop creating them — which is distinct from disabled, a bucket that never had it enabled. The S3-compatible endpoint spells the same states Enabled / Suspended in its XML, and reports disabled by omitting the element.
deletion_protection: boolWhen true, DeleteBucket schedules deletion instead of removing the bucket immediately. Default false deliberately preserves S3 immediate deletion.
recovery_window_days: i64Configured recovery window in whole days (default 7). New writes require 1–30; disabled historical buckets can retain legacy out-of-range values.
deleted_at: Nullable<String>When deletion was requested; null when not pending or for historical windows.
scheduled_purge_at: Option<String>Purge deadline, present while deletion is pending. Restore before this time to cancel.
created_at: String