pub struct EffectBoundary {
pub effect: Box<Effect>,
pub principal: String,
pub context: Option<HashMap<String, Value>>,
}Expand description
EffectBoundary : The boundary contract for submitting effects to the kernel
Fields§
§effect: Box<Effect>§principal: StringAgent/user identity (e.g. agent:analyst)
context: Option<HashMap<String, Value>>Additional context (jurisdiction, industry, budget state)
Implementations§
Source§impl EffectBoundary
impl EffectBoundary
Sourcepub fn new(effect: Effect, principal: String) -> EffectBoundary
pub fn new(effect: Effect, principal: String) -> EffectBoundary
The boundary contract for submitting effects to the kernel
Trait Implementations§
Source§impl Clone for EffectBoundary
impl Clone for EffectBoundary
Source§fn clone(&self) -> EffectBoundary
fn clone(&self) -> EffectBoundary
Returns a duplicate of the value. Read more
1.0.0 · 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 EffectBoundary
impl Debug for EffectBoundary
Source§impl Default for EffectBoundary
impl Default for EffectBoundary
Source§fn default() -> EffectBoundary
fn default() -> EffectBoundary
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EffectBoundary
impl<'de> Deserialize<'de> for EffectBoundary
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 PartialEq for EffectBoundary
impl PartialEq for EffectBoundary
Source§impl Serialize for EffectBoundary
impl Serialize for EffectBoundary
impl StructuralPartialEq for EffectBoundary
Auto Trait Implementations§
impl Freeze for EffectBoundary
impl RefUnwindSafe for EffectBoundary
impl Send for EffectBoundary
impl Sync for EffectBoundary
impl Unpin for EffectBoundary
impl UnsafeUnpin for EffectBoundary
impl UnwindSafe for EffectBoundary
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