pub struct PartitionRecord {
pub format_version: u32,
pub partition_id: String,
pub encryption_mode: EncryptionMode,
pub retention_class: RetentionClass,
pub key: PartitionKey,
pub created_at: String,
}Expand description
partition.json — the portable partition record. Replicated verbatim
with the data (spec §3.2): retention class and key state are properties
of the bytes, not of the store root they happen to sit in today.
Contains no principal id, household id, member list, wrap, salt, KDF
parameter, or factor — see the module docs and Subject, which is
recorded only in the separate, never-replicated local bindings file.
Fields§
§format_version: u32§partition_id: String32 lowercase hex chars. Must equal the containing directory name; checked on load.
encryption_mode: EncryptionModeSet at creation, never changeable in place. There is no
set_encryption_mode — see EncryptionMode. Replicated with the
data and subject to the same anti-laundering rule as
retention_class (spec §3.8): copy_partition_record fails if a
push would change a destination’s encryption_mode.
retention_class: RetentionClassSet at creation, immutable forever. There is no setter.
key: PartitionKey§created_at: StringRFC 3339, UTC. Provisioning time of the partition, not of a copy —
carried verbatim by copy_partition_record.
Trait Implementations§
Source§impl Clone for PartitionRecord
impl Clone for PartitionRecord
Source§impl Debug for PartitionRecord
impl Debug for PartitionRecord
Source§impl<'de> Deserialize<'de> for PartitionRecord
impl<'de> Deserialize<'de> for PartitionRecord
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>,
impl Eq for PartitionRecord
Source§impl PartialEq for PartitionRecord
impl PartialEq for PartitionRecord
Source§impl Serialize for PartitionRecord
impl Serialize for PartitionRecord
impl StructuralPartialEq for PartitionRecord
Auto Trait Implementations§
impl Forget for PartitionRecord
impl Freeze for PartitionRecord
impl Move for PartitionRecord
impl RefUnwindSafe for PartitionRecord
impl Send for PartitionRecord
impl Sync for PartitionRecord
impl Unpin for PartitionRecord
impl UnsafeUnpin for PartitionRecord
impl UnwindSafe for PartitionRecord
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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