pub struct EmbedSpec {
pub command: String,
pub name: String,
pub normalize: bool,
pub timeout: Duration,
pub query_convention: String,
}Expand description
The server’s --embed-cmd embedder (12.3 step 4, v0.15): the tuple the
other serve_* functions take, plus the query convention.
Fields§
§command: StringThe command (crate::EmbedCmd::new).
name: StringThe identity’s name.
normalize: boolThe identity’s normalize.
timeout: DurationThe per-request timeout.
query_convention: Stringcrate::EmbedderIdentity::query_convention: empty when queries
are embedded like documents. When set, the command gets each request
as {"kind": …, "text": …} (see crate::EmbedCmd).
Trait Implementations§
Auto Trait Implementations§
impl Forget for EmbedSpec
impl Freeze for EmbedSpec
impl Move for EmbedSpec
impl RefUnwindSafe for EmbedSpec
impl Send for EmbedSpec
impl Sync for EmbedSpec
impl Unpin for EmbedSpec
impl UnsafeUnpin for EmbedSpec
impl UnwindSafe for EmbedSpec
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