pub struct BucketConfigBuilder { /* private fields */ }Expand description
Builder for BucketConfig.
Implementations§
Source§impl BucketConfigBuilder
impl BucketConfigBuilder
Sourcepub fn hash_algorithm<VALUE: Into<HashAlgorithm>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn hash_algorithm<VALUE: Into<HashAlgorithm>>( &mut self, value: VALUE, ) -> &mut Self
The algorithm used to hash the content of the objects to generate the id of the objects. The algorithm is optional and if not set, the default algorithm is used.
The default algorithm is Sha256 if not set.
Sourcepub fn accepted_compression_algorithms<VALUE: Into<Vec<CompressionAlgorithm>>>(
&mut self,
value: VALUE,
) -> &mut Self
pub fn accepted_compression_algorithms<VALUE: Into<Vec<CompressionAlgorithm>>>( &mut self, value: VALUE, ) -> &mut Self
The acceptable compression algorithms for the objects in the bucket. If this parameter is not set, then all compression algorithms are accepted. If this parameter is set, then only the compression algorithms in the array are accepted.
When an object is stored in the bucket without a specified compression algorithm, the first algorithm in the array is used. Therefore, the order of the algorithms in the array is significant. Typically, the most efficient compression algorithm, such as the NoCompression algorithm, should be placed first in the array.
Any attempt to store an object using a different compression algorithm than the ones specified here will fail.
Sourcepub fn build(&self) -> Result<BucketConfig, BucketConfigBuilderError>
pub fn build(&self) -> Result<BucketConfig, BucketConfigBuilderError>
Trait Implementations§
Source§impl Clone for BucketConfigBuilder
impl Clone for BucketConfigBuilder
Source§fn clone(&self) -> BucketConfigBuilder
fn clone(&self) -> BucketConfigBuilder
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreAuto Trait Implementations§
impl Freeze for BucketConfigBuilder
impl RefUnwindSafe for BucketConfigBuilder
impl Send for BucketConfigBuilder
impl Sync for BucketConfigBuilder
impl Unpin for BucketConfigBuilder
impl UnsafeUnpin for BucketConfigBuilder
impl UnwindSafe for BucketConfigBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more