pub struct VerifiedUser { /* private fields */ }Expand description
Sealed proof that an IdP-signed token was verified.
Carries the verified claims that the framework extracted from the signed
token (user_id, issuer, issued_at, expires_at). The presence of a
VerifiedUser value is itself the proof — there is no way to construct
one from outside plexus-auth-core.
§Sealing
The constructor is pub(crate). Only the verifier inside this crate
(which validates the IdP signature) is able to mint a VerifiedUser.
tests/compile_fail/seal_verified_user_construct.rs asserts that no
external crate can construct one.
Implementations§
Source§impl VerifiedUser
impl VerifiedUser
Sourcepub fn expires_at(&self) -> i64
pub fn expires_at(&self) -> i64
Token expiry unix timestamp.
Trait Implementations§
Source§impl Clone for VerifiedUser
impl Clone for VerifiedUser
Source§fn clone(&self) -> VerifiedUser
fn clone(&self) -> VerifiedUser
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VerifiedUser
impl Debug for VerifiedUser
Source§impl Serialize for VerifiedUser
impl Serialize for VerifiedUser
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
Auto Trait Implementations§
impl Freeze for VerifiedUser
impl RefUnwindSafe for VerifiedUser
impl Send for VerifiedUser
impl Sync for VerifiedUser
impl Unpin for VerifiedUser
impl UnsafeUnpin for VerifiedUser
impl UnwindSafe for VerifiedUser
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