pub struct InitParams {
pub data_dir: PathBuf,
pub passphrase: Zeroizing<String>,
pub force: bool,
pub embedder: EmbedderConfig,
}Expand description
solo init parameters. Built by the CLI layer.
Fields§
§data_dir: PathBufWhere to put the data dir. Created if missing.
passphrase: Zeroizing<String>Resolved passphrase, wrapped in Zeroizing so the buffer is wiped
when this struct drops. CLI layer reads it via prompt or env var.
force: boolIf true, wipe Solo-owned files in data_dir before initializing.
embedder: EmbedderConfigEmbedder identity to record in the config. For commit 1.1 this is the BGE-M3 default; commit 1.4 (embedder loader) will produce it from the loaded model.
Trait Implementations§
Source§impl Clone for InitParams
impl Clone for InitParams
Source§fn clone(&self) -> InitParams
fn clone(&self) -> InitParams
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 moreAuto Trait Implementations§
impl Freeze for InitParams
impl RefUnwindSafe for InitParams
impl Send for InitParams
impl Sync for InitParams
impl Unpin for InitParams
impl UnsafeUnpin for InitParams
impl UnwindSafe for InitParams
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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