pub struct LogSubscriptionFilter {
pub min_level: Option<LogLevelOrStdout>,
pub node_filter: Option<NodeId>,
}Expand description
Filter for the dora/logs virtual input.
The wire form parsed by FromStr / rendered by Display
is dora/logs/{level}/{node}, so a node_filter can only be expressed
together with a min_level. Parsing therefore never produces a filter with
node_filter: Some(_) while min_level is None. That combination is still
constructible directly (both fields are public); when it is rendered, the
stdout level is emitted to keep the node restriction — see the
Display impl of InputMapping. A Stdout minimum is the
most permissive level filter (LogLevelOrStdout::passes
lets every message through it), so it delivers the same messages as None
(all levels, including stdout); such a value round-trips to
{ min_level: Some(stdout), node_filter }, which is behaviorally equivalent
to the original rather than exactly equal to it.
Fields§
§min_level: Option<LogLevelOrStdout>Minimum log level to receive. None means all levels (including stdout).
node_filter: Option<NodeId>Only receive logs from this specific node. None means all nodes.
Trait Implementations§
Source§impl Clone for LogSubscriptionFilter
impl Clone for LogSubscriptionFilter
Source§impl Debug for LogSubscriptionFilter
impl Debug for LogSubscriptionFilter
impl Eq for LogSubscriptionFilter
Source§impl JsonSchema for LogSubscriptionFilter
impl JsonSchema for LogSubscriptionFilter
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl Ord for LogSubscriptionFilter
impl Ord for LogSubscriptionFilter
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Source§impl PartialEq for LogSubscriptionFilter
impl PartialEq for LogSubscriptionFilter
Source§impl PartialOrd for LogSubscriptionFilter
impl PartialOrd for LogSubscriptionFilter
impl StructuralPartialEq for LogSubscriptionFilter
Auto Trait Implementations§
impl Freeze for LogSubscriptionFilter
impl RefUnwindSafe for LogSubscriptionFilter
impl Send for LogSubscriptionFilter
impl Sync for LogSubscriptionFilter
impl Unpin for LogSubscriptionFilter
impl UnsafeUnpin for LogSubscriptionFilter
impl UnwindSafe for LogSubscriptionFilter
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more