pub struct SyncSection {
pub dir: Option<String>,
pub machine_id: String,
pub auto: bool,
}Expand description
Epic S3: personal brain sync configuration.
Controls the event-log replication directory protocol. When dir is
absent, the sync subcommand is unconfigured and prints a setup hint.
machine_id is a stable opaque identifier for this machine. It defaults
to a freshly-generated ULID that is persisted in project.toml on first
use (written by kimetsu brain sync --setup). Operators can set it
manually to a meaningful name (hostname, username, etc.) — just keep it
unique within the sync directory.
#[serde(default)] keeps every pre-S3 project.toml loading cleanly.
Fields§
§dir: Option<String>Absolute (or home-relative) path to the shared sync directory.
Each machine writes its batches under <dir>/<machine_id>/.
When None, syncing is unconfigured.
machine_id: StringStable machine identifier. Defaults to an empty string (= not yet set; the CLI generates one on first use).
auto: boolv2.6 #3 Slice B: when dir is configured, automatically run a full sync
(push + pull + converge) at session end. Defaults to true — set
auto = false to keep sync manual (kimetsu brain sync).
Trait Implementations§
Source§impl Clone for SyncSection
impl Clone for SyncSection
Source§fn clone(&self) -> SyncSection
fn clone(&self) -> SyncSection
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more