pub struct NewEvent {
pub event_type: String,
pub payload: Vec<u8>,
pub schema: u32,
pub vault_refs: Vec<String>,
pub erases: String,
pub origin_partition: String,
pub origin_position: u64,
pub deployment: String,
}Expand description
An event proposed by a worker; the kernel assigns position, version, time and hash.
Fields§
§event_type: StringUnqualified, of the command’s domain; an empty or qualified type rejects the command
(invalid_event_type).
payload: Vec<u8>§schema: u32Version of the payload format, from 1. Must be the one declared in
Register.event_schemas (1 if not declared), otherwise invalid_event_schema.
vault_refs: Vec<String>References to the values the payload keeps in the vault, in payload order.
erases: StringA subject (a person) whose vault values this event erases, everywhere; empty for none.
The worker’s key needs vault_erase for the event type (otherwise erase_not_allowed).
origin_partition: StringSet by the kernel only, on events a tenant brought from another partition when it moved there: where the event was first committed. A worker’s result with them is refused.
origin_position: u64§deployment: StringSet by the kernel only, from the producing worker’s Register.deployment; whatever a worker sends here is replaced.
Trait Implementations§
impl Eq for NewEvent
Source§impl Message for NewEvent
impl Message for NewEvent
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.impl StructuralPartialEq for NewEvent
Auto Trait Implementations§
impl Forget for NewEvent
impl Freeze for NewEvent
impl Move for NewEvent
impl RefUnwindSafe for NewEvent
impl Send for NewEvent
impl Sync for NewEvent
impl Unpin for NewEvent
impl UnsafeUnpin for NewEvent
impl UnwindSafe for NewEvent
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request