pub struct ApiLogEntry {
pub timestamp: String,
pub level: ApiLogLevel,
pub message: String,
pub details: Option<Value>,
}Expand description
API log entry
Fields§
§timestamp: String§level: ApiLogLevel§message: String§details: Option<Value>Implementations§
Source§impl ApiLogEntry
impl ApiLogEntry
pub fn new(level: ApiLogLevel, message: impl Into<String>) -> Self
pub fn with_details(self, details: Value) -> Self
pub fn debug(message: impl Into<String>) -> Self
pub fn info(message: impl Into<String>) -> Self
pub fn warn(message: impl Into<String>) -> Self
pub fn error(message: impl Into<String>) -> Self
Trait Implementations§
Source§impl Clone for ApiLogEntry
impl Clone for ApiLogEntry
Source§fn clone(&self) -> ApiLogEntry
fn clone(&self) -> ApiLogEntry
Returns a duplicate 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 ApiLogEntry
impl Debug for ApiLogEntry
Source§impl<'de> Deserialize<'de> for ApiLogEntry
impl<'de> Deserialize<'de> for ApiLogEntry
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
Auto Trait Implementations§
impl Freeze for ApiLogEntry
impl RefUnwindSafe for ApiLogEntry
impl Send for ApiLogEntry
impl Sync for ApiLogEntry
impl Unpin for ApiLogEntry
impl UnsafeUnpin for ApiLogEntry
impl UnwindSafe for ApiLogEntry
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