#[repr(u8)]pub enum StaticKey {
Show 31 variants
msg = 0,
err = 1,
error = 2,
cause = 3,
method = 4,
status = 5,
size = 6,
time = 7,
count = 8,
total = 9,
ms = 10,
id = 11,
user_id = 12,
object_id = 13,
caller = 14,
target = 15,
duration = 16,
timezone = 17,
content_type = 18,
conn_id = 19,
path = 20,
length = 21,
on = 22,
kind = 23,
sensor_id = 24,
handler = 25,
timestamp = 26,
elapsed = 27,
camera_id = 28,
system_id = 29,
next = 30,
}Expand description
Predefined field keys that use compact single-byte encoding.
These commonly used keys are encoded as a single byte rather than a length-prefixed string, reducing log size for frequent fields.
Variants§
msg = 0
err = 1
error = 2
cause = 3
method = 4
status = 5
size = 6
time = 7
count = 8
total = 9
ms = 10
id = 11
user_id = 12
object_id = 13
caller = 14
target = 15
duration = 16
timezone = 17
content_type = 18
conn_id = 19
path = 20
length = 21
on = 22
kind = 23
sensor_id = 24
handler = 25
timestamp = 26
elapsed = 27
camera_id = 28
system_id = 29
next = 30
Implementations§
Trait Implementations§
impl Copy for StaticKey
impl Eq for StaticKey
impl StructuralPartialEq for StaticKey
Auto Trait Implementations§
impl Freeze for StaticKey
impl RefUnwindSafe for StaticKey
impl Send for StaticKey
impl Sync for StaticKey
impl Unpin for StaticKey
impl UnwindSafe for StaticKey
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