pub struct CeremonyRole { /* private fields */ }Implementations§
Source§impl CeremonyRole
impl CeremonyRole
pub fn new( id: RoleId, allowed_actions: impl IntoIterator<Item = RoleAction>, ) -> Result<Self, DomainError>
pub fn id(&self) -> &RoleId
pub fn allowed_actions(&self) -> &BTreeSet<RoleAction>
pub fn allows(&self, action: &RoleAction) -> bool
Trait Implementations§
Source§impl Clone for CeremonyRole
impl Clone for CeremonyRole
Source§impl Debug for CeremonyRole
impl Debug for CeremonyRole
Source§impl<'de> Deserialize<'de> for CeremonyRole
impl<'de> Deserialize<'de> for CeremonyRole
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 CeremonyRole
Source§impl PartialEq for CeremonyRole
impl PartialEq for CeremonyRole
Source§impl Serialize for CeremonyRole
impl Serialize for CeremonyRole
impl StructuralPartialEq for CeremonyRole
Auto Trait Implementations§
impl Freeze for CeremonyRole
impl RefUnwindSafe for CeremonyRole
impl Send for CeremonyRole
impl Sync for CeremonyRole
impl Unpin for CeremonyRole
impl UnsafeUnpin for CeremonyRole
impl UnwindSafe for CeremonyRole
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