pub struct EmbedderAction {
pub was_quantized: bool,
pub is_being_quantized: bool,
pub write_back: Option<WriteBackToDocuments>,
pub reindex: Option<ReindexAction>,
}Fields§
§was_quantized: bool§is_being_quantized: bool§write_back: Option<WriteBackToDocuments>§reindex: Option<ReindexAction>Implementations§
Source§impl EmbedderAction
impl EmbedderAction
pub fn is_being_quantized(&self) -> bool
pub fn write_back(&self) -> Option<&WriteBackToDocuments>
pub fn reindex(&self) -> Option<&ReindexAction>
pub fn with_is_being_quantized(self, quantize: bool) -> Self
pub fn with_write_back( write_back: WriteBackToDocuments, was_quantized: bool, ) -> Self
pub fn with_reindex(reindex: ReindexAction, was_quantized: bool) -> Self
Trait Implementations§
Source§impl Debug for EmbedderAction
impl Debug for EmbedderAction
Source§impl Default for EmbedderAction
impl Default for EmbedderAction
Source§fn default() -> EmbedderAction
fn default() -> EmbedderAction
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EmbedderAction
impl RefUnwindSafe for EmbedderAction
impl Send for EmbedderAction
impl Sync for EmbedderAction
impl Unpin for EmbedderAction
impl UnwindSafe for EmbedderAction
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
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> ⓘ
Converts
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> ⓘ
Converts
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