#[non_exhaustive]pub struct EventOptions {
pub tier: Option<Tier>,
pub default_sev: Option<Severity>,
pub paired_with: Option<String>,
}Expand description
Decoded (obs.v1.event) payload.
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.tier: Option<Tier>Tier declared by the schema; default Tier::Log if absent.
default_sev: Option<Severity>Default severity; default Severity::Info if absent.
paired_with: Option<String>Sibling full_name when this event participates in a Started/Completed pair (spec 93 P1-7).
Trait Implementations§
Source§impl Clone for EventOptions
impl Clone for EventOptions
Source§fn clone(&self) -> EventOptions
fn clone(&self) -> EventOptions
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 EventOptions
impl Debug for EventOptions
Source§impl Default for EventOptions
impl Default for EventOptions
Source§fn default() -> EventOptions
fn default() -> EventOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for EventOptions
impl RefUnwindSafe for EventOptions
impl Send for EventOptions
impl Sync for EventOptions
impl Unpin for EventOptions
impl UnsafeUnpin for EventOptions
impl UnwindSafe for EventOptions
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