pub enum WhichAlerts {
AlertMetaLabels(MetaLabels),
AlertUniqueIds(AlertUniqueIds),
}
Variants§
AlertMetaLabels(MetaLabels)
Filter alert_meta_labels: filter alerts by meta labels tagging.
AlertUniqueIds(AlertUniqueIds)
Filter alert_unique_ids: filter specific alerts (when alert_unique_ids is empty meaning it wil filter all alerts).
Implementations§
source§impl WhichAlerts
impl WhichAlerts
sourcepub fn merge(
field: &mut Option<WhichAlerts>,
tag: u32,
wire_type: WireType,
buf: &mut impl Buf,
ctx: DecodeContext,
) -> Result<(), DecodeError>
pub fn merge( field: &mut Option<WhichAlerts>, 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 WhichAlerts
impl Clone for WhichAlerts
source§fn clone(&self) -> WhichAlerts
fn clone(&self) -> WhichAlerts
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 WhichAlerts
impl Debug for WhichAlerts
source§impl<'de> Deserialize<'de> for WhichAlerts
impl<'de> Deserialize<'de> for WhichAlerts
source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<WhichAlerts, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<WhichAlerts, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for WhichAlerts
impl PartialEq for WhichAlerts
source§impl Serialize for WhichAlerts
impl Serialize for WhichAlerts
source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for WhichAlerts
Auto Trait Implementations§
impl Freeze for WhichAlerts
impl RefUnwindSafe for WhichAlerts
impl Send for WhichAlerts
impl Sync for WhichAlerts
impl Unpin for WhichAlerts
impl UnwindSafe for WhichAlerts
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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