pub enum SelectorOptions {
Enable(bool),
Include(VectorsSelector),
}
Variants§
Enable(bool)
If true
- return all vectors, if false
- none
Include(VectorsSelector)
List of payload keys to include into result
Implementations§
source§impl SelectorOptions
impl SelectorOptions
sourcepub fn merge(
field: &mut Option<SelectorOptions>,
tag: u32,
wire_type: WireType,
buf: &mut impl Buf,
ctx: DecodeContext,
) -> Result<(), DecodeError>
pub fn merge( field: &mut Option<SelectorOptions>, tag: u32, wire_type: WireType, buf: &mut impl Buf, ctx: DecodeContext, ) -> Result<(), DecodeError>
Decodes an instance of the message from a buffer, and merges it into self.
sourcepub fn encoded_len(&self) -> usize
pub fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Trait Implementations§
source§impl Clone for SelectorOptions
impl Clone for SelectorOptions
source§fn clone(&self) -> SelectorOptions
fn clone(&self) -> SelectorOptions
Returns a copy of the value. Read more
1.0.0 · 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 SelectorOptions
impl Debug for SelectorOptions
source§impl From<SelectorOptions> for WithVectorsSelector
impl From<SelectorOptions> for WithVectorsSelector
source§fn from(value: SelectorOptions) -> Self
fn from(value: SelectorOptions) -> Self
Converts to this type from the input type.
source§impl From<VectorsSelector> for SelectorOptions
impl From<VectorsSelector> for SelectorOptions
source§fn from(value: VectorsSelector) -> Self
fn from(value: VectorsSelector) -> Self
Converts to this type from the input type.
source§impl From<bool> for SelectorOptions
impl From<bool> for SelectorOptions
source§impl PartialEq for SelectorOptions
impl PartialEq for SelectorOptions
impl StructuralPartialEq for SelectorOptions
Auto Trait Implementations§
impl Freeze for SelectorOptions
impl RefUnwindSafe for SelectorOptions
impl Send for SelectorOptions
impl Sync for SelectorOptions
impl Unpin for SelectorOptions
impl UnwindSafe for SelectorOptions
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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