pub struct PublishEvent {
pub timestamp: DateTime<Utc>,
pub event_type: EventType,
pub package: String,
}Expand description
An event in the publish event log.
Events are written to an append-only JSONL file during publishing. This provides a detailed timeline for debugging and auditing.
§Example
ⓘ
use chrono::Utc;
use shipper::types::{PublishEvent, EventType};
let event = PublishEvent {
timestamp: Utc::now(),
event_type: EventType::ExecutionStarted,
package: "".to_string(),
};Fields§
§timestamp: DateTime<Utc>§event_type: EventType§package: StringTrait Implementations§
Source§impl Clone for PublishEvent
impl Clone for PublishEvent
Source§fn clone(&self) -> PublishEvent
fn clone(&self) -> PublishEvent
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 PublishEvent
impl Debug for PublishEvent
Source§impl<'de> Deserialize<'de> for PublishEvent
impl<'de> Deserialize<'de> for PublishEvent
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 PublishEvent
impl RefUnwindSafe for PublishEvent
impl Send for PublishEvent
impl Sync for PublishEvent
impl Unpin for PublishEvent
impl UnsafeUnpin for PublishEvent
impl UnwindSafe for PublishEvent
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