Struct bollard::service::EventMessage
source · pub struct EventMessage {
pub typ: Option<EventMessageTypeEnum>,
pub action: Option<String>,
pub actor: Option<EventActor>,
pub scope: Option<EventMessageScopeEnum>,
pub time: Option<i64>,
pub time_nano: Option<i64>,
}
Expand description
EventMessage represents the information an event contains.
Fields§
§typ: Option<EventMessageTypeEnum>
The type of object emitting the event
action: Option<String>
The type of event
actor: Option<EventActor>
§scope: Option<EventMessageScopeEnum>
Scope of the event. Engine events are local
scope. Cluster (Swarm) events are swarm
scope.
time: Option<i64>
Timestamp of event
time_nano: Option<i64>
Timestamp of event, with nanosecond accuracy
Trait Implementations§
source§impl Clone for EventMessage
impl Clone for EventMessage
source§fn clone(&self) -> EventMessage
fn clone(&self) -> EventMessage
Returns a copy 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 EventMessage
impl Debug for EventMessage
source§impl Default for EventMessage
impl Default for EventMessage
source§fn default() -> EventMessage
fn default() -> EventMessage
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for EventMessage
impl<'de> Deserialize<'de> for EventMessage
source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<EventMessage, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<EventMessage, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for EventMessage
impl PartialEq for EventMessage
source§impl Serialize for EventMessage
impl Serialize for EventMessage
source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for EventMessage
Auto Trait Implementations§
impl Freeze for EventMessage
impl RefUnwindSafe for EventMessage
impl Send for EventMessage
impl Sync for EventMessage
impl Unpin for EventMessage
impl UnwindSafe for EventMessage
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)