loonfs_core/options.rs
1//! Per-operation options structs for the engine surface.
2
3use loonfs_api::ChangeSeq;
4
5/// Options for namespace bootstrap.
6#[derive(Debug, Clone, Copy, Default, PartialEq, Eq)]
7pub struct BootstrapOptions {
8 /// If true, creating an already-existing namespace is treated as success.
9 pub allow_existing: bool,
10}
11
12/// Options for namespace deletion.
13#[derive(Debug, Clone, Copy, Default, PartialEq, Eq)]
14pub struct DeleteNamespaceOptions {
15 /// Delete only if the head is still at this sequence. A mismatch fails
16 /// with `stale_head` instead of deleting work the caller has not seen.
17 pub expected_head_seq: Option<ChangeSeq>,
18}