pub enum MatchValue {
Keyword(String),
Integer(i64),
Boolean(bool),
Text(String),
Keywords(RepeatedStrings),
Integers(RepeatedIntegers),
ExceptIntegers(RepeatedIntegers),
ExceptKeywords(RepeatedStrings),
}
Variants§
Keyword(String)
Match string keyword
Integer(i64)
Match integer
Boolean(bool)
Match boolean
Text(String)
Match text
Keywords(RepeatedStrings)
Match multiple keywords
Integers(RepeatedIntegers)
Match multiple integers
ExceptIntegers(RepeatedIntegers)
Match any other value except those integers
ExceptKeywords(RepeatedStrings)
Match any other value except those keywords
Implementations§
source§impl MatchValue
impl MatchValue
sourcepub fn merge(
field: &mut Option<MatchValue>,
tag: u32,
wire_type: WireType,
buf: &mut impl Buf,
ctx: DecodeContext,
) -> Result<(), DecodeError>
pub fn merge( field: &mut Option<MatchValue>, 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 MatchValue
impl Clone for MatchValue
source§fn clone(&self) -> MatchValue
fn clone(&self) -> MatchValue
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 MatchValue
impl Debug for MatchValue
source§impl From<MatchValue> for Match
impl From<MatchValue> for Match
source§fn from(value: MatchValue) -> Self
fn from(value: MatchValue) -> Self
Converts to this type from the input type.
source§impl From<String> for MatchValue
impl From<String> for MatchValue
source§impl From<bool> for MatchValue
impl From<bool> for MatchValue
source§impl From<i64> for MatchValue
impl From<i64> for MatchValue
source§impl Not for MatchValue
impl Not for MatchValue
source§impl PartialEq for MatchValue
impl PartialEq for MatchValue
impl StructuralPartialEq for MatchValue
Auto Trait Implementations§
impl Freeze for MatchValue
impl RefUnwindSafe for MatchValue
impl Send for MatchValue
impl Sync for MatchValue
impl Unpin for MatchValue
impl UnwindSafe for MatchValue
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