pub struct EventDraft {
pub print_id: Option<PrintId>,
pub source: EventSource,
pub received_at: Timestamp,
pub payload: EventPayload,
pub raw: Option<RawBytes>,
}Expand description
One event on its way into the store, before the store mints its identifier.
Fields§
§print_id: Option<PrintId>The print it belongs to, when it belongs to one.
source: EventSourceWhere it came from.
received_at: TimestampWhen it was received.
payload: EventPayloadThe kind and the payload, which are one closed pair.
raw: Option<RawBytes>The bytes exactly as received, for an externally sourced event.
Implementations§
Trait Implementations§
Source§impl Clone for EventDraft
impl Clone for EventDraft
Source§impl Debug for EventDraft
impl Debug for EventDraft
Source§impl<'de> Deserialize<'de> for EventDraft
impl<'de> Deserialize<'de> for EventDraft
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 EventDraft
impl JsonSchema for EventDraft
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 EventDraft
impl PartialEq for EventDraft
Source§impl Serialize for EventDraft
impl Serialize for EventDraft
impl StructuralPartialEq for EventDraft
Auto Trait Implementations§
impl Freeze for EventDraft
impl RefUnwindSafe for EventDraft
impl Send for EventDraft
impl Sync for EventDraft
impl Unpin for EventDraft
impl UnsafeUnpin for EventDraft
impl UnwindSafe for EventDraft
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