pub struct ManifestState {Show 17 fields
pub version: u32,
pub label_token_schema_version: u32,
pub node_label_tokens: BTreeMap<String, u32>,
pub edge_label_tokens: BTreeMap<String, u32>,
pub next_node_label_id: u32,
pub next_edge_label_id: u32,
pub segments: Vec<SegmentInfo>,
pub next_node_id: u64,
pub next_edge_id: u64,
pub dense_vector: Option<DenseVectorConfig>,
pub prune_policies: BTreeMap<String, PrunePolicy>,
pub next_engine_seq: u64,
pub next_wal_generation_id: u64,
pub active_wal_generation_id: u64,
pub pending_flush_epochs: Vec<FlushEpochMeta>,
pub secondary_indexes: Vec<SecondaryIndexManifestEntry>,
pub next_secondary_index_id: u64,
}Expand description
Manifest state: the atomic checkpoint of the database.
This raw structure is exposed for explicit diagnostic introspection through
DatabaseEngine::manifest() and manifest::load_manifest_readonly().
Ordinary graph APIs use named labels and edge labels and do not accept these
internal numeric token IDs as inputs.
Fields§
§version: u32§label_token_schema_version: u32Named node-label / edge-label token schema marker.
node_label_tokens: BTreeMap<String, u32>DB-scoped node-label catalog: public label -> internal label_id.
edge_label_tokens: BTreeMap<String, u32>DB-scoped edge-label catalog: public edge label -> internal label_id.
next_node_label_id: u32Next node-label token ID to allocate.
next_edge_label_id: u32Next edge-label token ID to allocate.
segments: Vec<SegmentInfo>§next_node_id: u64§next_edge_id: u64§dense_vector: Option<DenseVectorConfig>DB-scoped dense vector configuration.
prune_policies: BTreeMap<String, PrunePolicy>Named prune policies applied automatically during compaction. Absent from older manifests; defaults to empty.
next_engine_seq: u64Next engine sequence number to assign. Persisted across flush/reopen.
next_wal_generation_id: u64Next WAL generation ID to allocate. Monotonically increasing.
active_wal_generation_id: u64WAL generation ID of the currently active (writable) WAL file.
pending_flush_epochs: Vec<FlushEpochMeta>Flush epochs that are in-flight (frozen or published but not yet retired).
secondary_indexes: Vec<SecondaryIndexManifestEntry>Optional secondary index declarations.
next_secondary_index_id: u64Next declaration ID to allocate.
Trait Implementations§
Source§impl Clone for ManifestState
impl Clone for ManifestState
Source§fn clone(&self) -> ManifestState
fn clone(&self) -> ManifestState
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ManifestState
impl Debug for ManifestState
Source§impl<'de> Deserialize<'de> for ManifestState
impl<'de> Deserialize<'de> for ManifestState
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>,
Auto Trait Implementations§
impl Freeze for ManifestState
impl RefUnwindSafe for ManifestState
impl Send for ManifestState
impl Sync for ManifestState
impl Unpin for ManifestState
impl UnsafeUnpin for ManifestState
impl UnwindSafe for ManifestState
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,
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