pub struct Authenticated {
pub principal: Principal,
pub auth: Option<VerifiedAuth>,
pub write_grant: Option<Redacted>,
pub ref_hint: Option<String>,
/* private fields */
}Expand description
A request that passed stage 0, bound to the procedure it was
authenticated for. Only super::Pipeline::authenticate builds one.
Fields§
§principal: PrincipalWho the request acts as.
auth: Option<VerifiedAuth>The verified auth v2 authorization of a signed request.
write_grant: Option<Redacted>A presented write grant, redacted from debug output.
ref_hint: Option<String>Optional repository-local read-your-writes hint (outside auth v2).
Implementations§
Source§impl Authenticated
impl Authenticated
Trait Implementations§
Source§impl Clone for Authenticated
impl Clone for Authenticated
Source§impl Debug for Authenticated
impl Debug for Authenticated
impl Eq for Authenticated
Source§impl PartialEq for Authenticated
impl PartialEq for Authenticated
impl StructuralPartialEq for Authenticated
Auto Trait Implementations§
impl Freeze for Authenticated
impl RefUnwindSafe for Authenticated
impl Send for Authenticated
impl Sync for Authenticated
impl Unpin for Authenticated
impl UnsafeUnpin for Authenticated
impl UnwindSafe for Authenticated
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