pub struct CeremonyContext(/* private fields */);Implementations§
Source§impl CeremonyContext
impl CeremonyContext
pub fn new(attributes: Attributes) -> Self
pub fn empty() -> Self
pub fn with_guard_approval( self, guard_name: &GuardName, ) -> Result<Self, DomainError>
pub fn with_patch(self, patch: &ContextPatch) -> Result<Self, DomainError>
pub fn get(&self, key: &ContextKey) -> Option<&Value>
pub fn is_guard_approved(&self, guard_name: &GuardName) -> bool
pub fn attributes(&self) -> &Attributes
Trait Implementations§
Source§impl Clone for CeremonyContext
impl Clone for CeremonyContext
Source§impl Debug for CeremonyContext
impl Debug for CeremonyContext
Source§impl Default for CeremonyContext
impl Default for CeremonyContext
Source§impl<'de> Deserialize<'de> for CeremonyContext
impl<'de> Deserialize<'de> for CeremonyContext
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 CeremonyContext
Source§impl PartialEq for CeremonyContext
impl PartialEq for CeremonyContext
Source§impl Serialize for CeremonyContext
impl Serialize for CeremonyContext
impl StructuralPartialEq for CeremonyContext
Auto Trait Implementations§
impl Freeze for CeremonyContext
impl RefUnwindSafe for CeremonyContext
impl Send for CeremonyContext
impl Sync for CeremonyContext
impl Unpin for CeremonyContext
impl UnsafeUnpin for CeremonyContext
impl UnwindSafe for CeremonyContext
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