pub struct EmbedPolicy {
pub fields: Vec<String>,
pub provider: String,
pub model: String,
}Expand description
EMBED (fields = (...), provider = '..', model = '..').
Fields§
§fields: Vec<String>Source fields whose text is embedded.
provider: StringProvider token (e.g. openai).
model: StringModel name as written in the policy.
Trait Implementations§
Source§impl Clone for EmbedPolicy
impl Clone for EmbedPolicy
Source§fn clone(&self) -> EmbedPolicy
fn clone(&self) -> EmbedPolicy
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 moreSource§impl Debug for EmbedPolicy
impl Debug for EmbedPolicy
impl Eq for EmbedPolicy
Source§impl PartialEq for EmbedPolicy
impl PartialEq for EmbedPolicy
Source§fn eq(&self, other: &EmbedPolicy) -> bool
fn eq(&self, other: &EmbedPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for EmbedPolicy
Auto Trait Implementations§
impl Freeze for EmbedPolicy
impl RefUnwindSafe for EmbedPolicy
impl Send for EmbedPolicy
impl Sync for EmbedPolicy
impl Unpin for EmbedPolicy
impl UnsafeUnpin for EmbedPolicy
impl UnwindSafe for EmbedPolicy
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