pub struct TopicInfo {Show 17 fields
pub key: String,
pub verdict: TopicVerdict,
pub note: String,
pub origin: Option<String>,
pub producer: Option<String>,
pub class: Option<String>,
pub subject: Option<String>,
pub variables: BTreeMap<String, String>,
pub payload_type: 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 since: Option<String>,
pub description: Option<String>,
}Expand description
One key, described as far as the RFC 09 §5.1 ladder reached.
Redesigned in issue #34 from an all-or-nothing struct (whose builder
hard-errored on any key that was not a registered v1 data subject — an O1
violation) into a partial report: every key yields one, and verdict
says how far it got. Fields below the ladder’s failure point are absent,
never defaulted.
Fields§
§key: String§verdict: TopicVerdictThe ladder verdict, machine-stable (see TopicVerdict).
note: StringHuman-readable elaboration of the verdict (why, and what would answer it) — rendered, never parsed.
origin: Option<String>§producer: Option<String>§class: Option<String>§subject: Option<String>§variables: BTreeMap<String, String>§payload_type: Option<String>§unit: Option<String>§qos: Option<String>§ttl_s: Option<i64>§rate: Option<String>§cardinality: Option<i64>§encoding: Option<String>§since: Option<String>§description: Option<String>Implementations§
Source§impl TopicInfo
impl TopicInfo
Sourcepub fn from_description(d: &KeyDescription) -> TopicInfo
pub fn from_description(d: &KeyDescription) -> TopicInfo
Render a KeyDescription into the report shape.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for TopicInfo
impl RefUnwindSafe for TopicInfo
impl Send for TopicInfo
impl Sync for TopicInfo
impl Unpin for TopicInfo
impl UnsafeUnpin for TopicInfo
impl UnwindSafe for TopicInfo
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
Mutably borrows from an owned value. Read more
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> ⓘ
Converts
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> ⓘ
Converts
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