pub struct Event {
pub topic: Topic,
pub type: String,
pub key: String,
pub filter_keys: Vec<String>,
pub index: u64,
pub payload: HashMap<String, Value>,
}
Expand description
Event holds information related to an event that occurred in Nomad. The Payload is a hydrated object related to the Topic
This struct was generated based on the Go types of the official Nomad API client.
Fields§
§topic: Topic
§type: String
§key: String
§filter_keys: Vec<String>
§index: u64
§payload: HashMap<String, Value>
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Event
impl<'de> Deserialize<'de> for Event
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
impl StructuralPartialEq for Event
Auto Trait Implementations§
impl Freeze for Event
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
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