pub struct ProcessRecord {
pub name: String,
pub version: u32,
pub model: Vec<u8>,
pub canonical: Vec<u8>,
pub issued_at: i64,
pub sig: Option<Signature>,
pub recorded_at: i64,
pub removed: bool,
pub acting: Option<RequestContext>,
}Expand description
A business process (design/processes.md). With a version: that version of its model, as
registered (ProcessService.Register); versions are kept forever. Without (0): the process’s
state from then on, removed or active again; the newest such record per process wins, and a
process without one is active.
Fields§
§name: Stringqualified: shop.fulfilment
version: u32from 1; 0: a change of state
model: Vec<u8>the model as signed
canonical: Vec<u8>its canonical JSON (keys sorted, no whitespace): what versions compare
issued_at: i64ms since epoch, signed: with the model, or with the removal
sig: Option<Signature>over kernable.v1.process, .process_remove, .process_act or the membership
recorded_at: i64ms since epoch: when the kernel registered or changed it
removed: boola change of state: removed (no new cases) or active again
acting: Option<RequestContext>A change of state: as whom the process acts (ProcessService.Act), kept with each change;
none: as process:<name>.
Trait Implementations§
Source§impl Clone for ProcessRecord
impl Clone for ProcessRecord
Source§impl Debug for ProcessRecord
impl Debug for ProcessRecord
Source§impl Default for ProcessRecord
impl Default for ProcessRecord
Source§impl Message for ProcessRecord
impl Message for ProcessRecord
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.Source§impl PartialEq for ProcessRecord
impl PartialEq for ProcessRecord
impl StructuralPartialEq for ProcessRecord
Auto Trait Implementations§
impl Forget for ProcessRecord
impl Freeze for ProcessRecord
impl Move for ProcessRecord
impl RefUnwindSafe for ProcessRecord
impl Send for ProcessRecordwhere
RawVecInner: Send,
impl Sync for ProcessRecordwhere
RawVecInner: Sync,
impl Unpin for ProcessRecord
impl UnsafeUnpin for ProcessRecordwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<Attribute>: UnsafeUnpin,
impl UnwindSafe for ProcessRecordwhere
RawVecInner: UnwindSafe,
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<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