pub struct RecommendInputBuilder { /* private fields */ }
Expand description
Builder for RecommendInput
.
Implementations§
source§impl RecommendInputBuilder
impl RecommendInputBuilder
sourcepub fn positive<VALUE: Into<Vec<VectorInput>>>(self, value: VALUE) -> Self
pub fn positive<VALUE: Into<Vec<VectorInput>>>(self, value: VALUE) -> Self
Look for vectors closest to the vectors from these points
sourcepub fn negative<VALUE: Into<Vec<VectorInput>>>(self, value: VALUE) -> Self
pub fn negative<VALUE: Into<Vec<VectorInput>>>(self, value: VALUE) -> Self
Try to avoid vectors like the vector from these points
source§impl RecommendInputBuilder
impl RecommendInputBuilder
sourcepub fn build(self) -> RecommendInput
pub fn build(self) -> RecommendInput
Builds the desired type. Can often be omitted.
source§impl RecommendInputBuilder
impl RecommendInputBuilder
pub fn add_positive(self, value: impl Into<VectorInput>) -> Self
pub fn add_negative(self, value: impl Into<VectorInput>) -> Self
Trait Implementations§
source§impl Default for RecommendInputBuilder
impl Default for RecommendInputBuilder
source§impl From<RecommendInputBuilder> for RecommendInput
impl From<RecommendInputBuilder> for RecommendInput
source§fn from(value: RecommendInputBuilder) -> Self
fn from(value: RecommendInputBuilder) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for RecommendInputBuilder
impl RefUnwindSafe for RecommendInputBuilder
impl Send for RecommendInputBuilder
impl Sync for RecommendInputBuilder
impl Unpin for RecommendInputBuilder
impl UnwindSafe for RecommendInputBuilder
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request