pub struct LogField {
pub key: String,
pub value: String,
pub path: bool,
pub sensitive: bool,
}Expand description
One structured field; paths must be supplied as fields instead of embedded text.
Fields§
§key: StringStable field name.
value: StringField value.
path: boolWhether the value is a local path.
sensitive: boolWhether ordinary logs must redact the value.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for LogField
impl<'de> Deserialize<'de> for LogField
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<LogField, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<LogField, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for LogField
Source§impl Serialize for LogField
impl Serialize for LogField
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 LogField
Auto Trait Implementations§
impl Freeze for LogField
impl RefUnwindSafe for LogField
impl Send for LogField
impl Sync for LogField
impl Unpin for LogField
impl UnsafeUnpin for LogField
impl UnwindSafe for LogField
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