pub struct RevokeTokenResponse {
pub token_hash: String,
pub expires_at: String,
}Expand description
Response body for POST /api/v1/cluster/revoke-token.
Fields§
§token_hash: StringThe canonical hash form of the revoked token (lowercase hex SHA-256).
expires_at: StringRFC3339 timestamp when the revocation entry will be pruned. Matches
the token’s own exp claim if the server could parse the envelope,
or now() + 24h as a safe fallback if only a hash was supplied.
Trait Implementations§
Source§impl Clone for RevokeTokenResponse
impl Clone for RevokeTokenResponse
Source§fn clone(&self) -> RevokeTokenResponse
fn clone(&self) -> RevokeTokenResponse
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 ComposeSchema for RevokeTokenResponse
impl ComposeSchema for RevokeTokenResponse
Source§impl Debug for RevokeTokenResponse
impl Debug for RevokeTokenResponse
Source§impl<'de> Deserialize<'de> for RevokeTokenResponse
impl<'de> Deserialize<'de> for RevokeTokenResponse
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
Source§impl Serialize for RevokeTokenResponse
impl Serialize for RevokeTokenResponse
Auto Trait Implementations§
impl Freeze for RevokeTokenResponse
impl RefUnwindSafe for RevokeTokenResponse
impl Send for RevokeTokenResponse
impl Sync for RevokeTokenResponse
impl Unpin for RevokeTokenResponse
impl UnsafeUnpin for RevokeTokenResponse
impl UnwindSafe for RevokeTokenResponse
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