Struct b2_client::bucket::BucketEncryptionInfo
source · [−]pub struct BucketEncryptionInfo { /* private fields */ }Expand description
Response from B2 with the configured bucket encryption settings.
Implementations
sourceimpl 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
sourceimpl Debug for BucketEncryptionInfo
impl Debug for BucketEncryptionInfo
sourceimpl<'de> Deserialize<'de> for BucketEncryptionInfo
impl<'de> Deserialize<'de> for BucketEncryptionInfo
sourcefn 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 RefUnwindSafe for BucketEncryptionInfo
impl Send for BucketEncryptionInfo
impl Sync for BucketEncryptionInfo
impl Unpin for BucketEncryptionInfo
impl UnwindSafe for BucketEncryptionInfo
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more