pub struct JsonLogRecord {Show 27 fields
pub kind: RecordType,
pub id: String,
pub sender: String,
pub recipient: Vec<String>,
pub queue: String,
pub site: String,
pub size: u64,
pub response: Response,
pub peer_address: Option<ResolvedAddress>,
pub timestamp: DateTime<Utc>,
pub created: DateTime<Utc>,
pub num_attempts: u16,
pub bounce_classification: BounceClass,
pub egress_pool: Option<String>,
pub egress_source: Option<String>,
pub source_address: Option<MaybeProxiedSourceAddress>,
pub feedback_report: Option<Box<ARFReport>>,
pub meta: HashMap<String, Value>,
pub headers: HashMap<String, Value>,
pub delivery_protocol: Option<String>,
pub reception_protocol: Option<String>,
pub nodeid: Uuid,
pub tls_cipher: Option<String>,
pub tls_protocol_version: Option<String>,
pub tls_peer_subject_name: Option<Vec<String>>,
pub provider_name: Option<String>,
pub session_id: Option<Uuid>,
}Fields§
§kind: RecordTypeWhat kind of record this is
id: StringThe message id
sender: StringThe envelope sender
recipient: Vec<String>The envelope recipient
queue: StringWhich named queue the message was associated with
site: StringWhich MX site the message was being delivered to
size: u64The size of the message, in bytes
response: ResponseThe response from/to the peer
peer_address: Option<ResolvedAddress>The address of the peer, and our sense of its hostname or EHLO domain
timestamp: DateTime<Utc>The time at which we are logging this event
created: DateTime<Utc>The time at which the message was initially received and created
num_attempts: u16The number of delivery attempts that have been made. Note that this may be approximate after a restart; use the number of logged events to determine the true number
bounce_classification: BounceClass§egress_pool: Option<String>§egress_source: Option<String>§source_address: Option<MaybeProxiedSourceAddress>§feedback_report: Option<Box<ARFReport>>§meta: HashMap<String, Value>§headers: HashMap<String, Value>§delivery_protocol: Option<String>The protocol used to deliver, or attempt to deliver, this message
reception_protocol: Option<String>The protocol used to receive this message
nodeid: UuidThe id of the node on which the event occurred
tls_cipher: Option<String>The TLS Cipher used, if applicable
tls_protocol_version: Option<String>The TLS protocol version used, if applicable
tls_peer_subject_name: Option<Vec<String>>The Subject Name from the peer TLS certificate, if applicable
provider_name: Option<String>The provider name, if any. This is a way of grouping destination sites operated by the same provider.
session_id: Option<Uuid>Uuid identifying a connection/session for either inbound or outbound (depending on the type of the record). This is useful when correlating a series of messages to the same connection for either ingress or egress
Trait Implementations§
Source§impl Clone for JsonLogRecord
impl Clone for JsonLogRecord
Source§impl Debug for JsonLogRecord
impl Debug for JsonLogRecord
Source§impl<'de> Deserialize<'de> for JsonLogRecord
impl<'de> Deserialize<'de> for JsonLogRecord
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>,
Auto Trait Implementations§
impl Freeze for JsonLogRecord
impl RefUnwindSafe for JsonLogRecord
impl Send for JsonLogRecord
impl Sync for JsonLogRecord
impl Unpin for JsonLogRecord
impl UnsafeUnpin for JsonLogRecord
impl UnwindSafe for JsonLogRecord
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
impl<T> ErasedDestructor for Twhere
T: 'static,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> 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> ⓘ
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> ⓘ
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