durch / rust-s3

Rust library for interfacing with S3 API compatible services
MIT License
498 stars 195 forks source link

Make BucketOwner `DisplayName` optional #384

Closed erdoganege closed 1 week ago

erdoganege commented 2 months ago

According to: https://docs.aws.amazon.com/AmazonS3/latest/API/API_Owner.html#API_Owner_Contents, only certain regions support DisplayName for the bucket. This causes problem for my bucket (eu-north-1) once I use bucket.exists(), it throws the following Error: S3(SerdeXml(Custom("missing field DisplayName"))) Thus, it should be Option<String> to support all regions.

durch commented 1 week ago

@erdoganege good, I've fixed tests up and its good to go