pub struct RefreshTokenRotation { /* private fields */ }Expand description
Refresh-token rotation command.
Makes one-time rotation semantics explicit at the contract boundary. This is a domain-facing command, not a storage-specific mutation DTO.
Implementations§
Source§impl RefreshTokenRotation
impl RefreshTokenRotation
pub fn new( session_id: SessionId, previous: RefreshToken, next: RefreshToken, ) -> Self
pub const fn session_id(&self) -> SessionId
pub fn previous(&self) -> &RefreshToken
pub fn next(&self) -> &RefreshToken
pub fn into_parts(self) -> (SessionId, RefreshToken, RefreshToken)
Trait Implementations§
Source§impl Clone for RefreshTokenRotation
impl Clone for RefreshTokenRotation
Source§fn clone(&self) -> RefreshTokenRotation
fn clone(&self) -> RefreshTokenRotation
Returns a duplicate of the value. Read more
1.0.0 · 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 RefreshTokenRotation
impl Debug for RefreshTokenRotation
Source§impl PartialEq for RefreshTokenRotation
impl PartialEq for RefreshTokenRotation
impl Eq for RefreshTokenRotation
impl StructuralPartialEq for RefreshTokenRotation
Auto Trait Implementations§
impl Freeze for RefreshTokenRotation
impl RefUnwindSafe for RefreshTokenRotation
impl Send for RefreshTokenRotation
impl Sync for RefreshTokenRotation
impl Unpin for RefreshTokenRotation
impl UnsafeUnpin for RefreshTokenRotation
impl UnwindSafe for RefreshTokenRotation
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