rustack_s3_model/input/
bucket.rs1use crate::types::{BucketCannedACL, CreateBucketConfiguration, ObjectOwnership};
4
5#[derive(Debug, Clone, Default)]
7pub struct CreateBucketInput {
8 pub acl: Option<BucketCannedACL>,
10 pub bucket: String,
12 pub create_bucket_configuration: Option<CreateBucketConfiguration>,
14 pub grant_full_control: Option<String>,
16 pub grant_read: Option<String>,
18 pub grant_read_acp: Option<String>,
20 pub grant_write: Option<String>,
22 pub grant_write_acp: Option<String>,
24 pub object_lock_enabled_for_bucket: Option<bool>,
26 pub object_ownership: Option<ObjectOwnership>,
28}
29
30#[derive(Debug, Clone, Default)]
32pub struct DeleteBucketInput {
33 pub bucket: String,
35 pub expected_bucket_owner: Option<String>,
37}
38
39#[derive(Debug, Clone, Default)]
41pub struct GetBucketLocationInput {
42 pub bucket: String,
44 pub expected_bucket_owner: Option<String>,
46}
47
48#[derive(Debug, Clone, Default)]
50pub struct HeadBucketInput {
51 pub bucket: String,
53 pub expected_bucket_owner: Option<String>,
55}
56
57#[derive(Debug, Clone, Default)]
59pub struct ListBucketsInput {
60 pub bucket_region: Option<String>,
62 pub continuation_token: Option<String>,
64 pub max_buckets: Option<i32>,
66 pub prefix: Option<String>,
68}