pub struct PackCustomLog {
pub context: PackLogContext,
pub level: LogLevel,
pub message: String,
pub type_: PackCustomLogType,
}
Expand description
Pack log generated by developer’s custom logging with context.logger.
JSON schema
{
"description": "Pack log generated by developer's custom logging with
context.logger.",
"type": "object",
"required": [
"context",
"level",
"message",
"type"
],
"properties": {
"context": {
"$ref": "#/components/schemas/PackLogContext"
},
"level": {
"$ref": "#/components/schemas/LogLevel"
},
"message": {
"description": "The message that's passed into context.logger.",
"examples": [
"The formula is called!"
],
"type": "string"
},
"type": {
"type": "string",
"enum": [
"custom"
],
"x-tsType": "PackLogType.Custom"
}
},
"additionalProperties": false,
"x-schema-name": "PackCustomLog"
}
Fields§
§context: PackLogContext
§level: LogLevel
§message: String
The message that’s passed into context.logger.
type_: PackCustomLogType
Trait Implementations§
Source§impl Clone for PackCustomLog
impl Clone for PackCustomLog
Source§fn clone(&self) -> PackCustomLog
fn clone(&self) -> PackCustomLog
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 PackCustomLog
impl Debug for PackCustomLog
Source§impl<'de> Deserialize<'de> for PackCustomLog
impl<'de> Deserialize<'de> for PackCustomLog
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<&PackCustomLog> for PackCustomLog
impl From<&PackCustomLog> for PackCustomLog
Source§fn from(value: &PackCustomLog) -> Self
fn from(value: &PackCustomLog) -> Self
Converts to this type from the input type.
Source§impl From<PackCustomLog> for PackLog
impl From<PackCustomLog> for PackLog
Source§fn from(value: PackCustomLog) -> Self
fn from(value: PackCustomLog) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for PackCustomLog
impl RefUnwindSafe for PackCustomLog
impl Send for PackCustomLog
impl Sync for PackCustomLog
impl Unpin for PackCustomLog
impl UnwindSafe for PackCustomLog
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