pub enum HomeStorage {
Opaque,
Browsable,
}Expand description
How a cloud home stores its objects: opaque (encrypted, unreadable to anyone who can read the bucket) or browsable (stored in the clear at readable paths). This is not about who can reach the bucket — the storage provider’s own access control applies either way; it is about whether what they store is legible. The host picks it once, when it creates the home; it cannot change later (it determines how every object is written). One choice drives two mechanisms together:
Opaque(the default): every object is encrypted at rest under the store key (the.encsuffix) and blobs use coven’s content-addressed path under the uploading device,{namespace}/{uploader}/{ab}/{cd}/{id}. Anyone with bucket access sees only ciphertext under opaque keys. Sharing a store (inviting members) requires an opaque home, because it wraps and rotates the store key.Browsable: every object is stored in the clear (no.encsuffix) and blobs use the consumer-supplied readable path{namespace}/{cloud_path}, so anyone with bucket access can read the actual files by name. Browsable storage cannot be combined with per-row audiences declared throughcrate::SyncedTable::scoped_by.
Variants§
Implementations§
Source§impl HomeStorage
impl HomeStorage
Sourcepub fn is_opaque(self) -> bool
pub fn is_opaque(self) -> bool
An opaque home is encrypted at rest and obfuscates its blob paths; a browsable home does neither.
Sourcepub fn is_browsable(self) -> bool
pub fn is_browsable(self) -> bool
Whether this home stores its objects in the clear at readable paths (the
inverse of Self::is_opaque).
Trait Implementations§
Source§impl Clone for HomeStorage
impl Clone for HomeStorage
Source§fn clone(&self) -> HomeStorage
fn clone(&self) -> HomeStorage
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for HomeStorage
impl Debug for HomeStorage
Source§impl<'de> Deserialize<'de> for HomeStorage
impl<'de> Deserialize<'de> for HomeStorage
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
Source§impl PartialEq for HomeStorage
impl PartialEq for HomeStorage
Source§impl Serialize for HomeStorage
impl Serialize for HomeStorage
impl Copy for HomeStorage
impl Eq for HomeStorage
impl StructuralPartialEq for HomeStorage
Auto Trait Implementations§
impl Freeze for HomeStorage
impl RefUnwindSafe for HomeStorage
impl Send for HomeStorage
impl Sync for HomeStorage
impl Unpin for HomeStorage
impl UnsafeUnpin for HomeStorage
impl UnwindSafe for HomeStorage
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.