pub struct NormalizedAlert {
pub source: EventSource,
pub received_at: Timestamp,
pub payload: EventPayload,
pub raw: RawBytes,
pub image_url: Option<String>,
}Expand description
One external body, read into this system’s own event vocabulary.
kind and payload are the one closed pair
EventPayload declares, so a
normalization naming one kind while carrying another’s payload is
unrepresentable here as it is in the store.
Fields§
§source: EventSourceWhere it came from.
received_at: TimestampWhen it was received.
payload: EventPayloadThe kind and the payload, which are one closed pair.
raw: RawBytesThe bytes exactly as received.
image_url: Option<String>The image this alert names, when it names one.
Implementations§
Trait Implementations§
Source§impl Clone for NormalizedAlert
impl Clone for NormalizedAlert
Source§fn clone(&self) -> NormalizedAlert
fn clone(&self) -> NormalizedAlert
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 NormalizedAlert
impl Debug for NormalizedAlert
Source§impl<'de> Deserialize<'de> for NormalizedAlert
impl<'de> Deserialize<'de> for NormalizedAlert
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 JsonSchema for NormalizedAlert
impl JsonSchema for NormalizedAlert
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreSource§impl PartialEq for NormalizedAlert
impl PartialEq for NormalizedAlert
Source§impl Serialize for NormalizedAlert
impl Serialize for NormalizedAlert
impl StructuralPartialEq for NormalizedAlert
Auto Trait Implementations§
impl Freeze for NormalizedAlert
impl RefUnwindSafe for NormalizedAlert
impl Send for NormalizedAlert
impl Sync for NormalizedAlert
impl Unpin for NormalizedAlert
impl UnsafeUnpin for NormalizedAlert
impl UnwindSafe for NormalizedAlert
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