pub struct Principal {
pub identifier: PrincipalIdentifier,
pub name: String,
pub resources: Vec<Resource>,
pub children: Vec<Principal>,
}
Expand description
A simple tree breakdown of resource usage useful for tests.
Fields§
§identifier: PrincipalIdentifier
Identifier of the principal.
name: String
Name of the principal.
resources: Vec<Resource>
Resources used by this principal.
children: Vec<Principal>
Children of the principal.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Principal
impl RefUnwindSafe for Principal
impl Send for Principal
impl Sync for Principal
impl Unpin for Principal
impl UnwindSafe for Principal
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)