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§impl Debug for EmbedPolicy
impl Debug for EmbedPolicy
impl Eq for EmbedPolicy
Source§impl PartialEq for EmbedPolicy
impl PartialEq for EmbedPolicy
impl StructuralPartialEq for EmbedPolicy
Auto Trait Implementations§
impl Forget for EmbedPolicy
impl Freeze for EmbedPolicy
impl Move for EmbedPolicy
impl RefUnwindSafe for EmbedPolicy
impl Send for EmbedPolicywhere
RawVecInner: Send,
impl Sync for EmbedPolicywhere
RawVecInner: Sync,
impl Unpin for EmbedPolicy
impl UnsafeUnpin for EmbedPolicywhere
*const u8 is !null: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
impl UnwindSafe for EmbedPolicywhere
RawVecInner: UnwindSafe,
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