#[non_exhaustive]pub struct AnnotatedEvent {
pub full_name: String,
pub event: EventOptions,
pub fields: Vec<AnnotatedField>,
}Expand description
One annotated event scanned from a descriptor pool.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.full_name: StringFully qualified message name (myapp.v1.ObsXxx).
event: EventOptionsDecoded (obs.v1.event) options.
fields: Vec<AnnotatedField>Per-field (obs.v1.field) options paired with name + tag.
Implementations§
Source§impl AnnotatedEvent
impl AnnotatedEvent
Sourcepub fn default_sev(&self) -> Severity
pub fn default_sev(&self) -> Severity
Effective default severity, defaulting to INFO.
Sourcepub fn schema_hash(&self) -> u64
pub fn schema_hash(&self) -> u64
First 8 bytes of BLAKE3 over the canonical descriptor string.
Mirrors obs-build::codegen::EventDecl::schema_hash and the
proc-macro’s compute_schema_hash so codegen, runtime, and
migrate paths agree byte-for-byte. Spec 12 § 3.5 / spec 93
P1-9 (obs migrate clickhouse populates schema_hash).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for AnnotatedEvent
impl RefUnwindSafe for AnnotatedEvent
impl Send for AnnotatedEvent
impl Sync for AnnotatedEvent
impl Unpin for AnnotatedEvent
impl UnsafeUnpin for AnnotatedEvent
impl UnwindSafe for AnnotatedEvent
Blanket Implementations§
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