pub enum Principal {
Account(String),
Invite(String),
}Expand description
Who a set of presented credentials turned out to be.
Variants§
Account(String)
An operator credential from --auth-file, or a redeemed account
from the store. Both are ordinary users of the node, and the name
is what every downstream check keys on.
Invite(String)
An unredeemed invite, identified by its id. It may reach exactly one route — its own redemption — and is refused everywhere else, which is enforced by the caller rather than here.
Implementations§
Trait Implementations§
impl Eq for Principal
impl StructuralPartialEq for Principal
Auto Trait Implementations§
impl Freeze for Principal
impl RefUnwindSafe for Principal
impl Send for Principal
impl Sync for Principal
impl Unpin for Principal
impl UnsafeUnpin 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