pub struct SchemaMetadata {
pub table_or_metric: String,
pub store: String,
pub version: String,
pub description: Option<String>,
pub logging_kind: LoggingKind,
pub fields: Vec<SchemaFieldMetadata>,
pub default_level: SpectraLevel,
pub default_sample_rate: f64,
pub gauge_coalesce_ms: Option<u64>,
}Expand description
Runtime metadata for a Spectra schema (event table or metric family).
Fields§
§table_or_metric: StringTable or metric name (registry key).
store: StringLogical store name from the schema DSL (store: field); used for registry grouping and routing.
version: StringSchema version string.
description: Option<String>Optional human-readable description.
logging_kind: LoggingKindWhether this schema is an event table or metric family.
fields: Vec<SchemaFieldMetadata>Registered field metadata.
default_level: SpectraLevelCompile-time default verbosity tier (see SpectraLevel).
default_sample_rate: f641.0 = always emit when level passes; 0.0 = never (except forced errors/warns).
gauge_coalesce_ms: Option<u64>Gauges only: minimum interval between emits (last-write-wins coalesce window).
Implementations§
Source§impl SchemaMetadata
impl SchemaMetadata
Sourcepub fn table_name(&self) -> &str
pub fn table_name(&self) -> &str
Returns the table or metric name.
Trait Implementations§
Source§impl Clone for SchemaMetadata
impl Clone for SchemaMetadata
Source§fn clone(&self) -> SchemaMetadata
fn clone(&self) -> SchemaMetadata
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SchemaMetadata
impl Debug for SchemaMetadata
Source§impl Default for SchemaMetadata
impl Default for SchemaMetadata
Source§fn default() -> SchemaMetadata
fn default() -> SchemaMetadata
Returns the “default value” for a type. Read more
Source§impl Registrable for SchemaMetadata
impl Registrable for SchemaMetadata
Source§fn registry_key(&self) -> &str
fn registry_key(&self) -> &str
Return the unique lookup key used by the registry.
Auto Trait Implementations§
impl Freeze for SchemaMetadata
impl RefUnwindSafe for SchemaMetadata
impl Send for SchemaMetadata
impl Sync for SchemaMetadata
impl Unpin for SchemaMetadata
impl UnsafeUnpin for SchemaMetadata
impl UnwindSafe for SchemaMetadata
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