Skip to main content

EmbedConfig

Struct EmbedConfig 

Source
pub struct EmbedConfig {
    pub embeddable_status: Option<Vec<String>>,
    pub embedder_id: Option<String>,
    pub dim: Option<u16>,
    pub backend: Option<String>,
    pub fallback_backend: Option<String>,
    pub http_url: Option<String>,
    pub http_timeout_ms: Option<u32>,
    pub http_model: Option<String>,
}
Expand description

Section [embed] — pipeline d’embedding (D-perf-1, B21).

Contrôle quel backend est utilisé, avec quel modèle, et quels statuts de notes sont éligibles à l’embedding.

Fields§

§embeddable_status: Option<Vec<String>>

Statuts de notes pouvant être embeddés (kebab-case, ex. ["live", "pending-review"]).

None → utiliser NoteStatus::is_embeddable_default().

Choix architectural : Vec<String> (pas Vec<NoteStatus>) pour que config.rs reste libre de tout type métier et évite tout cycle de dépendance. La comparaison s’effectue dans NoteStatus::is_embeddable(&EmbedConfig) via serde_kebab_repr(). Décision T03b 2026-05-04.

§embedder_id: Option<String>

Identifiant du modèle d’embedding (ex. “bge-m3”, “bge-small-en-v1.5”).

§dim: Option<u16>

Dimensions du vecteur de sortie. None → inféré depuis embedder_id.

§backend: Option<String>

Backend d’embedding sélectionné (D-perf-1, B21).

Valeurs : "http" | "fastembed" | "noop". None → “http”.

§fallback_backend: Option<String>

Backend de fallback si le backend principal est indisponible.

§http_url: Option<String>

URL du backend HTTP. Requise si backend = "http".

§http_timeout_ms: Option<u32>

Timeout en millisecondes pour les requêtes HTTP d’embedding.

§http_model: Option<String>

Nom du modèle passé dans la requête HTTP.

Trait Implementations§

Source§

impl Clone for EmbedConfig

Source§

fn clone(&self) -> EmbedConfig

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for EmbedConfig

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for EmbedConfig

Source§

fn default() -> EmbedConfig

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for EmbedConfig

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Serialize for EmbedConfig

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V