pub struct RevokedColumns<'a> {
pub kind: &'static str,
pub subject: Cow<'a, str>,
pub resource_kind: &'a str,
pub resource_id: &'a str,
pub bound: Option<i64>,
pub expires_at: Option<i64>,
}Expand description
One entry as a relational row, shared by the SQL stores (cheers-sqlx,
cheers-turso). The key is (kind, subject, resource_kind, resource_id) —
the entry’s identity: subject is the jti, the device id, or the member’s
principal in wire form (user:alice, key:.., migration 0015); the resource columns are "" unless the entry is a membership.
The bound lives in bound (device at_seq, membership at_epoch; NULL
for a jti) or expires_at (a jti’s exp; NULL = never lapses).
Fields§
§kind: &'static str§subject: Cow<'a, str>§resource_kind: &'a str§resource_id: &'a str§bound: Option<i64>§expires_at: Option<i64>Trait Implementations§
Source§impl<'a> Clone for RevokedColumns<'a>
impl<'a> Clone for RevokedColumns<'a>
Source§impl<'a> Debug for RevokedColumns<'a>
impl<'a> Debug for RevokedColumns<'a>
impl<'a> Eq for RevokedColumns<'a>
Source§impl<'a> PartialEq for RevokedColumns<'a>
impl<'a> PartialEq for RevokedColumns<'a>
impl<'a> StructuralPartialEq for RevokedColumns<'a>
Auto Trait Implementations§
impl<'a> Freeze for RevokedColumns<'a>
impl<'a> RefUnwindSafe for RevokedColumns<'a>
impl<'a> Send for RevokedColumns<'a>
impl<'a> Sync for RevokedColumns<'a>
impl<'a> Unpin for RevokedColumns<'a>
impl<'a> UnsafeUnpin for RevokedColumns<'a>
impl<'a> UnwindSafe for RevokedColumns<'a>
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