Skip to main content

ExtraKeys

Trait ExtraKeys 

Source
pub trait ExtraKeys {
    const ALLOWED_KEYS: &'static [&'static str];

    // Required method
    fn into_ffi_extra(self) -> HashMap<String, String>;
}

Required Associated Constants§

Source

const ALLOWED_KEYS: &'static [&'static str]

List of allowed extra keys as strings.

Required Methods§

Source

fn into_ffi_extra(self) -> HashMap<String, String>

Convert the event extras into a hashmap of extra key to extra value.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl ExtraKeys for NoExtraKeys

Source§

const ALLOWED_KEYS: &'static [&'static str]