pub struct Principal(pub Option<String>);Expand description
Opaque identity token attached by the authentication layer, inserted into request extensions. Standalone deployments populate this from the configured key name; embedders providing their own auth populate it with whatever caller identifier they need to attribute work against. Treat as opaque — do not parse, sanitize, or display without intentional formatting.
Tuple Fields§
§0: Option<String>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 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