pub struct ProcessIdentity {
pub kind: String,
pub label: Option<String>,
pub definition: Option<Value>,
}Expand description
Canonical process identity stored alongside every durable process row.
ProcessInput::Engine keeps its payload opaque to core. Engines therefore
publish their visible kind, display label, and definition identity at the
registration boundary; list, summary, trigger, and observation paths read
this durable field instead of decoding engine payload conventions.
Fields§
§kind: String§label: Option<String>§definition: Option<Value>Implementations§
Source§impl ProcessIdentity
impl ProcessIdentity
pub fn new(kind: impl Into<String>) -> Self
pub fn with_label(self, label: Option<impl Into<String>>) -> Self
pub fn with_definition(self, definition: Option<Value>) -> Self
pub fn from_process_input(input: &ProcessInput) -> Self
Trait Implementations§
Source§impl Clone for ProcessIdentity
impl Clone for ProcessIdentity
Source§fn clone(&self) -> ProcessIdentity
fn clone(&self) -> ProcessIdentity
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 ProcessIdentity
impl Debug for ProcessIdentity
Source§impl<'de> Deserialize<'de> for ProcessIdentity
impl<'de> Deserialize<'de> for ProcessIdentity
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
impl Eq for ProcessIdentity
Source§impl PartialEq for ProcessIdentity
impl PartialEq for ProcessIdentity
Source§fn eq(&self, other: &ProcessIdentity) -> bool
fn eq(&self, other: &ProcessIdentity) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ProcessIdentity
impl Serialize for ProcessIdentity
impl StructuralPartialEq for ProcessIdentity
Auto Trait Implementations§
impl Freeze for ProcessIdentity
impl RefUnwindSafe for ProcessIdentity
impl Send for ProcessIdentity
impl Sync for ProcessIdentity
impl Unpin for ProcessIdentity
impl UnsafeUnpin for ProcessIdentity
impl UnwindSafe for ProcessIdentity
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