pub struct BucketEncryptionInfo { /* private fields */ }Expand description
Response from B2 with the configured bucket encryption settings.
Implementations§
Source§impl BucketEncryptionInfo
impl BucketEncryptionInfo
Sourcepub fn can_read(&self) -> bool
pub fn can_read(&self) -> bool
True if the authorization token allows access to the encryption settings.
If this is false, then settings will return None.
Sourcepub fn settings(&self) -> Option<&ServerSideEncryption>
pub fn settings(&self) -> Option<&ServerSideEncryption>
The ServerSideEncryption configuration on the bucket.
Trait Implementations§
Source§impl Debug for BucketEncryptionInfo
impl Debug for BucketEncryptionInfo
Source§impl<'de> Deserialize<'de> for BucketEncryptionInfo
impl<'de> Deserialize<'de> for BucketEncryptionInfo
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for BucketEncryptionInfo
impl RefUnwindSafe for BucketEncryptionInfo
impl Send for BucketEncryptionInfo
impl Sync for BucketEncryptionInfo
impl Unpin for BucketEncryptionInfo
impl UnwindSafe for BucketEncryptionInfo
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
Mutably borrows from an owned value. Read more