pub struct PostmapEvent {
pub timestamp: DateTime<Utc>,
pub process_id: u32,
pub event_type: PostmapEventType,
pub details: PostmapDetails,
pub extensions: HashMap<String, String>,
}
Expand description
Postmap工具事件
记录postmap命令执行过程中的各种事件和错误
Fields§
§timestamp: DateTime<Utc>
事件发生时间戳(UTC时间)
process_id: u32
执行postmap命令的进程ID
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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>
Converts
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>
Converts
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