pub struct DynamicRoleBinding { /* private fields */ }Expand description
A role selected from ceremony context at claim time.
Implementations§
Source§impl DynamicRoleBinding
impl DynamicRoleBinding
pub fn new( context_key: ContextKey, allowed_roles: impl IntoIterator<Item = RoleId>, ) -> Result<Self, DomainError>
pub fn context_key(&self) -> &ContextKey
pub fn allowed_roles(&self) -> &BTreeSet<RoleId>
pub fn allows(&self, role_id: &RoleId) -> bool
Trait Implementations§
Source§impl Clone for DynamicRoleBinding
impl Clone for DynamicRoleBinding
Source§fn clone(&self) -> DynamicRoleBinding
fn clone(&self) -> DynamicRoleBinding
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 DynamicRoleBinding
impl Debug for DynamicRoleBinding
Source§impl<'de> Deserialize<'de> for DynamicRoleBinding
impl<'de> Deserialize<'de> for DynamicRoleBinding
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 DynamicRoleBinding
Source§impl PartialEq for DynamicRoleBinding
impl PartialEq for DynamicRoleBinding
Source§impl Serialize for DynamicRoleBinding
impl Serialize for DynamicRoleBinding
impl StructuralPartialEq for DynamicRoleBinding
Auto Trait Implementations§
impl Freeze for DynamicRoleBinding
impl RefUnwindSafe for DynamicRoleBinding
impl Send for DynamicRoleBinding
impl Sync for DynamicRoleBinding
impl Unpin for DynamicRoleBinding
impl UnsafeUnpin for DynamicRoleBinding
impl UnwindSafe for DynamicRoleBinding
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