pub struct WorkloadClassCapabilitiesV1(/* private fields */);Expand description
Copyable projection of the classes admitted by the exact role grants that authorized one request action. This is reconstructible authentication context, never a second durable policy authority.
Implementations§
Source§impl WorkloadClassCapabilitiesV1
impl WorkloadClassCapabilitiesV1
pub const fn empty() -> Self
pub fn from_public_classes( classes: impl IntoIterator<Item = WorkloadClassV1>, ) -> Result<Self, WorkloadClassCapabilityError>
pub const fn allows(self, class: WorkloadClassV1) -> bool
pub const fn is_empty(self) -> bool
Trait Implementations§
Source§impl Clone for WorkloadClassCapabilitiesV1
impl Clone for WorkloadClassCapabilitiesV1
impl Copy for WorkloadClassCapabilitiesV1
Source§impl Debug for WorkloadClassCapabilitiesV1
impl Debug for WorkloadClassCapabilitiesV1
impl Eq for WorkloadClassCapabilitiesV1
impl StructuralPartialEq for WorkloadClassCapabilitiesV1
Auto Trait Implementations§
impl Freeze for WorkloadClassCapabilitiesV1
impl RefUnwindSafe for WorkloadClassCapabilitiesV1
impl Send for WorkloadClassCapabilitiesV1
impl Sync for WorkloadClassCapabilitiesV1
impl Unpin for WorkloadClassCapabilitiesV1
impl UnsafeUnpin for WorkloadClassCapabilitiesV1
impl UnwindSafe for WorkloadClassCapabilitiesV1
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