pub struct InferredSubject {Show 14 fields
pub path: String,
pub class: String,
pub type_name: String,
pub variant: Option<String>,
pub unit: Option<String>,
pub qos: Option<String>,
pub ttl_s: Option<i64>,
pub rate: Option<String>,
pub cardinality: Option<i64>,
pub encoding: Option<String>,
pub comments: Vec<String>,
pub origins: usize,
pub keys: usize,
pub samples: u64,
}Expand description
One inferred [[subject]]. Optional fields are absent when the
observation could not establish them, never defaulted.
Fields§
§path: StringThe inferred pattern, {var}s and a trailing {rest...} included.
class: String§type_name: String§variant: Option<String>A generated-variant override, present only where two inferred paths
would collide on the default name (cpu/usage beside
cpu/{v1}/usage): the var-bearing one is then named with its vars,
as the reference registry does by hand.
unit: Option<String>§qos: Option<String>Present for the alert family only — state under a leading alert
chunk — where RFC 08 §5 (v1.23) requires qos = "alert". That is
the family’s normative profile, never what was observed: observed
QoS stays a comment on every entry, this one included.
ttl_s: Option<i64>§rate: Option<String>§cardinality: Option<i64>§encoding: Option<String>§comments: Vec<String>The guesses that are not fields — observed QoS, a kind guess, the
sibling set a {var} was inferred from, what could not be
established. Written above the entry as # lines.
origins: usizeDistinct origins that published an expansion of this pattern.
keys: usizeDistinct wire keys (expansions) the pattern covers.
samples: u64Trait Implementations§
Source§impl Clone for InferredSubject
impl Clone for InferredSubject
Source§fn clone(&self) -> InferredSubject
fn clone(&self) -> InferredSubject
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for InferredSubject
impl Debug for InferredSubject
Auto Trait Implementations§
impl Freeze for InferredSubject
impl RefUnwindSafe for InferredSubject
impl Send for InferredSubject
impl Sync for InferredSubject
impl Unpin for InferredSubject
impl UnsafeUnpin for InferredSubject
impl UnwindSafe for InferredSubject
Blanket Implementations§
Source§impl<Source> AccessAs for Source
impl<Source> AccessAs for Source
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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<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> 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