pub struct PostmapEvent {
pub timestamp: DateTime<Utc>,
pub process_id: u32,
pub event_type: PostmapEventType,
pub details: PostmapDetails,
pub extensions: HashMap<String, String>,
}Fields§
§timestamp: DateTime<Utc>§process_id: u32§event_type: PostmapEventType§details: PostmapDetails§extensions: HashMap<String, String>Implementations§
Source§impl PostmapEvent
impl PostmapEvent
pub fn new( timestamp: DateTime<Utc>, process_id: u32, event_type: PostmapEventType, details: PostmapDetails, ) -> Self
pub fn add_extension(&mut self, key: String, value: String)
Trait Implementations§
Source§impl Clone for PostmapEvent
impl Clone for PostmapEvent
Source§fn clone(&self) -> PostmapEvent
fn clone(&self) -> PostmapEvent
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 PostmapEvent
impl Debug for PostmapEvent
Source§impl<'de> Deserialize<'de> for PostmapEvent
impl<'de> Deserialize<'de> for PostmapEvent
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 PartialEq for PostmapEvent
impl PartialEq for PostmapEvent
Source§impl Serialize for PostmapEvent
impl Serialize for PostmapEvent
impl StructuralPartialEq for PostmapEvent
Auto Trait Implementations§
impl Freeze for PostmapEvent
impl RefUnwindSafe for PostmapEvent
impl Send for PostmapEvent
impl Sync for PostmapEvent
impl Unpin for PostmapEvent
impl UnwindSafe for PostmapEvent
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