pub struct ContextInputPairBuilder { /* private fields */ }
Expand description
Builder for ContextInputPair
.
Implementations§
source§impl ContextInputPairBuilder
impl ContextInputPairBuilder
sourcepub fn positive<VALUE: Into<VectorInput>>(self, value: VALUE) -> Self
pub fn positive<VALUE: Into<VectorInput>>(self, value: VALUE) -> Self
A positive vector
sourcepub fn negative<VALUE: Into<VectorInput>>(self, value: VALUE) -> Self
pub fn negative<VALUE: Into<VectorInput>>(self, value: VALUE) -> Self
Repel from this vector
source§impl ContextInputPairBuilder
impl ContextInputPairBuilder
sourcepub fn build(self) -> ContextInputPair
pub fn build(self) -> ContextInputPair
Builds the desired type. Can often be omitted.
source§impl ContextInputPairBuilder
impl ContextInputPairBuilder
pub fn new( positive: impl Into<VectorInput>, negative: impl Into<VectorInput>, ) -> Self
Trait Implementations§
source§impl From<ContextInputPairBuilder> for ContextInputPair
impl From<ContextInputPairBuilder> for ContextInputPair
source§fn from(value: ContextInputPairBuilder) -> Self
fn from(value: ContextInputPairBuilder) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ContextInputPairBuilder
impl RefUnwindSafe for ContextInputPairBuilder
impl Send for ContextInputPairBuilder
impl Sync for ContextInputPairBuilder
impl Unpin for ContextInputPairBuilder
impl UnwindSafe for ContextInputPairBuilder
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