pub struct DirectionalConfig {
pub metadata_key: Key,
pub branches: Vec<Branch>,
pub fallthrough: Fallthrough,
}
Expand description
Configuration for a specific direction.
Fields
metadata_key: Key
The key for the metadata to compare against.
branches: Vec<Branch>
List of filters to compare and potentially run if any match.
fallthrough: Fallthrough
The behaviour for when none of the branches
match.
Trait Implementations
sourceimpl Debug for DirectionalConfig
impl Debug for DirectionalConfig
sourceimpl<'de> Deserialize<'de> for DirectionalConfig
impl<'de> Deserialize<'de> for DirectionalConfig
sourcefn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
sourceimpl JsonSchema for DirectionalConfig
impl JsonSchema for DirectionalConfig
sourcefn schema_name() -> String
fn schema_name() -> String
The name of the generated JSON Schema. Read more
sourcefn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
fn is_referenceable() -> bool
fn is_referenceable() -> bool
Whether JSON Schemas generated for this type should be re-used where possible using the
$ref
keyword. Read moresourceimpl PartialEq<DirectionalConfig> for DirectionalConfig
impl PartialEq<DirectionalConfig> for DirectionalConfig
sourcefn eq(&self, other: &DirectionalConfig) -> bool
fn eq(&self, other: &DirectionalConfig) -> bool
sourceimpl Serialize for DirectionalConfig
impl Serialize for DirectionalConfig
impl Eq for DirectionalConfig
impl StructuralEq for DirectionalConfig
impl StructuralPartialEq for DirectionalConfig
Auto Trait Implementations
impl RefUnwindSafe for DirectionalConfig
impl Send for DirectionalConfig
impl Sync for DirectionalConfig
impl Unpin for DirectionalConfig
impl UnwindSafe for DirectionalConfig
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
sourcefn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request