pub struct PersistentSnapshot {
pub tenant_id: String,
pub provider_id: String,
pub jwks_json: String,
pub etag: Option<String>,
pub last_modified: Option<DateTime<Utc>>,
pub expires_at: DateTime<Utc>,
pub persisted_at: DateTime<Utc>,
}Expand description
Snapshot of cache payload persisted to external storage.
Fields§
§tenant_id: StringTenant identifier associated with the snapshot.
provider_id: StringProvider identifier within the tenant scope.
jwks_json: StringSerialized JWKS payload captured from the cache.
etag: Option<String>Entity tag returned by the JWKS endpoint, if present.
last_modified: Option<DateTime<Utc>>Last-Modified timestamp advertised by the JWKS endpoint.
expires_at: DateTime<Utc>UTC timestamp when the cached payload expires.
persisted_at: DateTime<Utc>UTC timestamp when the snapshot was persisted.
Implementations§
Source§impl PersistentSnapshot
impl PersistentSnapshot
Sourcepub fn validate(
&self,
registration: &IdentityProviderRegistration,
) -> Result<()>
pub fn validate( &self, registration: &IdentityProviderRegistration, ) -> Result<()>
Validate snapshot metadata aligns with registration expectations.
Trait Implementations§
Source§impl Clone for PersistentSnapshot
impl Clone for PersistentSnapshot
Source§fn clone(&self) -> PersistentSnapshot
fn clone(&self) -> PersistentSnapshot
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 PersistentSnapshot
impl Debug for PersistentSnapshot
Source§impl<'de> Deserialize<'de> for PersistentSnapshot
impl<'de> Deserialize<'de> for PersistentSnapshot
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PersistentSnapshot
impl RefUnwindSafe for PersistentSnapshot
impl Send for PersistentSnapshot
impl Sync for PersistentSnapshot
impl Unpin for PersistentSnapshot
impl UnwindSafe for PersistentSnapshot
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