pub struct SegmentAdvice {
pub id: [u8; 4],
pub size: u32,
pub role: SegmentRoleHint,
pub must_preserve: bool,
pub clearable: bool,
pub rebuildable: bool,
pub append_only: bool,
pub immutable: bool,
}Expand description
Migration advice for a single segment.
Fields§
§id: [u8; 4]Segment ID bytes.
size: u32Byte size.
role: SegmentRoleHintDecoded role.
must_preserve: boolMust be preserved across migration (data cannot be lost).
clearable: boolCan be cleared and rebuilt from other data.
rebuildable: boolCan be rebuilt from on-chain state (index, cache).
append_only: boolAppend-only: only new entries allowed, no mutations.
immutable: boolImmutable after init (Audit segments).
Trait Implementations§
Source§impl Clone for SegmentAdvice
impl Clone for SegmentAdvice
Source§fn clone(&self) -> SegmentAdvice
fn clone(&self) -> SegmentAdvice
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SegmentAdvice
Auto Trait Implementations§
impl Freeze for SegmentAdvice
impl RefUnwindSafe for SegmentAdvice
impl Send for SegmentAdvice
impl Sync for SegmentAdvice
impl Unpin for SegmentAdvice
impl UnsafeUnpin for SegmentAdvice
impl UnwindSafe for SegmentAdvice
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