pub struct PackConfig {
pub backend: String,
pub no_embed: bool,
}Expand description
Per-pack backend assignment.
Corresponds to a [packs.<pack-name>] entry in khive.toml.
Packs whose name is absent from [packs] fall back to the main backend.
[packs.knowledge]
backend = "knowledge"
[packs.comm]
backend = "comm"
no_embed = trueFields§
§backend: StringBackend name this pack is assigned to. Must match a [[backends]].name,
or main when no backends are declared.
no_embed: boolDisable vector embedding for this pack’s runtime: rows it writes get
FTS and metadata only, no vec_* rows and no ANN participation. The
opt-out covers pack-owned writes on the pack’s own backend; it does
NOT cover core()-routed concept writes, which embed with the MAIN
runtime’s embedders (the boot path wires them in via
with_core_embedders_from) so the shared graph stays uniformly
searchable. Fits packs whose own rows are structural rather than
retrieval targets (e.g. comm). Effective in multi-backend boot, where
each pack gets its own runtime. Defaults to false.
Trait Implementations§
Source§impl Clone for PackConfig
impl Clone for PackConfig
Source§impl Debug for PackConfig
impl Debug for PackConfig
Source§impl<'de> Deserialize<'de> for PackConfig
impl<'de> Deserialize<'de> for PackConfig
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 PackConfig
impl RefUnwindSafe for PackConfig
impl Send for PackConfig
impl Sync for PackConfig
impl Unpin for PackConfig
impl UnsafeUnpin for PackConfig
impl UnwindSafe for PackConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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> ⓘ
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