[][src]Enum cerk_router_rule_based::RoutingRules

pub enum RoutingRules {
    And(Vec<RoutingRules>),
    Or(Vec<RoutingRules>),
    Exact(CloudEventFieldsOption<String>),
    Contains(CloudEventFieldsString),
    StartsWith(CloudEventFieldsString),
    EndsWith(CloudEventFieldsString),
}

routing rules

They decide if an event get forwarded to a specified port.

Variants

Routes the event to the destionation if all rules match

Routes the event to the destionation if any rule matches

Pattern matching on field

Arguments

  • FieldName
  • String to compare to

Pattern matching on field

Arguments

  • FieldName
  • String to search for
StartsWith(CloudEventFieldsString)

Pattern matching on field

Arguments

  • FieldName
  • Strings with which the field should start with

Pattern matching on field

Arguments

  • FieldName
  • Strings with which the field should end with

Trait Implementations

impl Clone for RoutingRules[src]

impl Debug for RoutingRules[src]

impl<'de> Deserialize<'de> for RoutingRules[src]

impl PartialEq<RoutingRules> for RoutingRules[src]

impl Serialize for RoutingRules[src]

impl StructuralPartialEq for RoutingRules[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,