pub struct LogSeverity(/* private fields */);Expand description
The severity of the event described in a log entry, expressed as one of the standard severity levels listed below. For your reference, the levels are assigned the listed numeric values. The effect of using numeric values other than those listed is undefined.
You can filter for log entries by severity. For example, the following
filter expression will match log entries with severities INFO, NOTICE,
and WARNING:
severity > DEBUG AND severity <= WARNINGIf you are writing log entries, you should map other severity encodings to
one of these standard levels. For example, you might map all of Java’s FINE,
FINER, and FINEST levels to LogSeverity.DEBUG. You can preserve the
original severity level in the log entry payload if you wish.
Implementations§
Trait Implementations§
Source§impl Clone for LogSeverity
impl Clone for LogSeverity
Source§fn clone(&self) -> LogSeverity
fn clone(&self) -> LogSeverity
Returns a copy of the value. Read more
1.0.0 · 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 LogSeverity
impl Debug for LogSeverity
Source§impl Default for LogSeverity
impl Default for LogSeverity
Source§fn default() -> LogSeverity
fn default() -> LogSeverity
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for LogSeverity
impl<'de> Deserialize<'de> for LogSeverity
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<String> for LogSeverity
impl From<String> for LogSeverity
Source§impl PartialEq for LogSeverity
impl PartialEq for LogSeverity
Source§impl Serialize for LogSeverity
impl Serialize for LogSeverity
impl StructuralPartialEq for LogSeverity
Auto Trait Implementations§
impl Freeze for LogSeverity
impl RefUnwindSafe for LogSeverity
impl Send for LogSeverity
impl Sync for LogSeverity
impl Unpin for LogSeverity
impl UnwindSafe for LogSeverity
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