mirror of
https://github.com/minio/minio-rs.git
synced 2025-12-06 15:26:51 +08:00
* error refactored: moved to thiserror * Result type alias for better ergonomics: * removed field from MinioErrorCode::BucketNotEmpty enum * made field private of MinioErrorResponse * updated XmlError * simplified calling errors * bumped toolchain channel form 1.86.0 to 1.87.0 * bumped toolchain channel form 1.87.0 to 1.88.0 due to clippy fixes that are not compatible with 1.87.0
38 lines
1.5 KiB
Rust
38 lines
1.5 KiB
Rust
// MinIO Rust Library for Amazon S3 Compatible Cloud Storage
|
|
// Copyright 2025 MinIO, Inc.
|
|
//
|
|
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
// you may not use this file except in compliance with the License.
|
|
// You may obtain a copy of the License at
|
|
//
|
|
// http://www.apache.org/licenses/LICENSE-2.0
|
|
//
|
|
// Unless required by applicable law or agreed to in writing, software
|
|
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
// See the License for the specific language governing permissions and
|
|
// limitations under the License.
|
|
|
|
use crate::s3::error::{Error, ValidationErr};
|
|
use crate::s3::response::a_response_traits::{HasBucket, HasRegion, HasS3Fields};
|
|
use crate::s3::types::{FromS3Response, S3Request};
|
|
use crate::{impl_from_s3response, impl_has_s3fields};
|
|
use bytes::Bytes;
|
|
use http::HeaderMap;
|
|
use std::mem;
|
|
|
|
/// Represents the response of the [delete_bucket_encryption()](crate::s3::client::Client::delete_bucket_encryption) API call.
|
|
/// This struct contains metadata and information about the bucket whose encryption configuration was removed.
|
|
#[derive(Clone, Debug)]
|
|
pub struct DeleteBucketEncryptionResponse {
|
|
request: S3Request,
|
|
headers: HeaderMap,
|
|
body: Bytes,
|
|
}
|
|
|
|
impl_from_s3response!(DeleteBucketEncryptionResponse);
|
|
impl_has_s3fields!(DeleteBucketEncryptionResponse);
|
|
|
|
impl HasBucket for DeleteBucketEncryptionResponse {}
|
|
impl HasRegion for DeleteBucketEncryptionResponse {}
|