Struct LogAttribute
pub struct LogAttribute(pub Value);Expand description
An attribute that can be attached to a log.
Tuple Fields§
§0: ValueTrait Implementations§
§impl Clone for LogAttribute
impl Clone for LogAttribute
§fn clone(&self) -> LogAttribute
fn clone(&self) -> LogAttribute
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 more§impl Debug for LogAttribute
impl Debug for LogAttribute
§impl<'de> Deserialize<'de> for LogAttribute
impl<'de> Deserialize<'de> for LogAttribute
§fn deserialize<D>(
deserializer: D,
) -> Result<LogAttribute, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
fn deserialize<D>(
deserializer: D,
) -> Result<LogAttribute, <D as Deserializer<'de>>::Error>where
D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
§impl<T> From<T> for LogAttribute
impl<T> From<T> for LogAttribute
§fn from(value: T) -> LogAttribute
fn from(value: T) -> LogAttribute
Converts to this type from the input type.
§impl PartialEq for LogAttribute
impl PartialEq for LogAttribute
§impl Serialize for LogAttribute
impl Serialize for LogAttribute
§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 LogAttribute
Auto Trait Implementations§
impl Freeze for LogAttribute
impl RefUnwindSafe for LogAttribute
impl Send for LogAttribute
impl Sync for LogAttribute
impl Unpin for LogAttribute
impl UnsafeUnpin for LogAttribute
impl UnwindSafe for LogAttribute
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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