pub struct UserEvent {
pub id: String,
pub name: String,
pub payload: Option<Base64Payload>,
pub node_filter: Option<String>,
pub service_filter: Option<String>,
pub tag_filter: Option<String>,
pub version: isize,
pub l_time: u64,
}
Expand description
UserEventParam is used to parameterize a user event
Fields§
§id: String
ID of the user event. Automatically generated.
name: String
Name of the event
payload: Option<Base64Payload>
Optional payload
node_filter: Option<String>
NodeFilter is a regular expression to filter on nodes
service_filter: Option<String>
ServiceFilter is a regular expression to filter on services
tag_filter: Option<String>
TagFilter is a regular expression to filter on tags of a service, must be provided with ServiceFilter
version: isize
Version of the user event. Automatically generated.
l_time: u64
LTime is the lamport time. Automatically generated.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for UserEvent
impl<'de> Deserialize<'de> for UserEvent
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 UserEvent
impl RefUnwindSafe for UserEvent
impl Send for UserEvent
impl Sync for UserEvent
impl Unpin for UserEvent
impl UnwindSafe for UserEvent
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