pub enum DomainValue {
String(String),
Signed(i64),
Unsigned(u64),
Bool(bool),
}Expand description
Scalar domain data that is safe and intentional to include in a log event.
Arbitrary object serialization is deliberately unsupported so callers do not accidentally log full requests, responses or domain entities.
Variants§
Trait Implementations§
Source§impl Clone for DomainValue
impl Clone for DomainValue
Source§fn clone(&self) -> DomainValue
fn clone(&self) -> DomainValue
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 DomainValue
impl Debug for DomainValue
impl Eq for DomainValue
Source§impl From<&str> for DomainValue
impl From<&str> for DomainValue
Source§fn from(value: &str) -> DomainValue
fn from(value: &str) -> DomainValue
Converts to this type from the input type.
Source§impl From<String> for DomainValue
impl From<String> for DomainValue
Source§fn from(value: String) -> DomainValue
fn from(value: String) -> DomainValue
Converts to this type from the input type.
Source§impl From<bool> for DomainValue
impl From<bool> for DomainValue
Source§fn from(value: bool) -> DomainValue
fn from(value: bool) -> DomainValue
Converts to this type from the input type.
Source§impl From<i8> for DomainValue
impl From<i8> for DomainValue
Source§fn from(value: i8) -> DomainValue
fn from(value: i8) -> DomainValue
Converts to this type from the input type.
Source§impl From<i16> for DomainValue
impl From<i16> for DomainValue
Source§fn from(value: i16) -> DomainValue
fn from(value: i16) -> DomainValue
Converts to this type from the input type.
Source§impl From<i32> for DomainValue
impl From<i32> for DomainValue
Source§fn from(value: i32) -> DomainValue
fn from(value: i32) -> DomainValue
Converts to this type from the input type.
Source§impl From<i64> for DomainValue
impl From<i64> for DomainValue
Source§fn from(value: i64) -> DomainValue
fn from(value: i64) -> DomainValue
Converts to this type from the input type.
Source§impl From<u8> for DomainValue
impl From<u8> for DomainValue
Source§fn from(value: u8) -> DomainValue
fn from(value: u8) -> DomainValue
Converts to this type from the input type.
Source§impl From<u16> for DomainValue
impl From<u16> for DomainValue
Source§fn from(value: u16) -> DomainValue
fn from(value: u16) -> DomainValue
Converts to this type from the input type.
Source§impl From<u32> for DomainValue
impl From<u32> for DomainValue
Source§fn from(value: u32) -> DomainValue
fn from(value: u32) -> DomainValue
Converts to this type from the input type.
Source§impl From<u64> for DomainValue
impl From<u64> for DomainValue
Source§fn from(value: u64) -> DomainValue
fn from(value: u64) -> DomainValue
Converts to this type from the input type.
Source§impl PartialEq for DomainValue
impl PartialEq for DomainValue
Source§impl Serialize for DomainValue
impl Serialize for DomainValue
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for DomainValue
Auto Trait Implementations§
impl Freeze for DomainValue
impl RefUnwindSafe for DomainValue
impl Send for DomainValue
impl Sync for DomainValue
impl Unpin for DomainValue
impl UnsafeUnpin for DomainValue
impl UnwindSafe for DomainValue
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more