pub enum SelectorOptions {
Enable(bool),
Include(PayloadIncludeSelector),
Exclude(PayloadExcludeSelector),
}
Variants§
Enable(bool)
If true
- return all payload, if false
- none
Include(PayloadIncludeSelector)
Exclude(PayloadExcludeSelector)
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<PayloadExcludeSelector> for SelectorOptions
impl From<PayloadExcludeSelector> for SelectorOptions
source§fn from(value: PayloadExcludeSelector) -> Self
fn from(value: PayloadExcludeSelector) -> Self
Converts to this type from the input type.
source§impl From<PayloadIncludeSelector> for SelectorOptions
impl From<PayloadIncludeSelector> for SelectorOptions
source§fn from(value: PayloadIncludeSelector) -> Self
fn from(value: PayloadIncludeSelector) -> Self
Converts to this type from the input type.
source§impl From<SelectorOptions> for WithPayloadSelector
impl From<SelectorOptions> for WithPayloadSelector
source§fn from(value: SelectorOptions) -> Self
fn from(value: SelectorOptions) -> 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