pub struct RevokeTokenRequest {
pub token_or_hash: String,
pub reason: Option<String>,
}Expand description
Request body for POST /api/v1/cluster/revoke-token.
The operator supplies EITHER the raw token (the same b64 envelope
string zlayer node generate-join-token printed) OR the lowercase
hex SHA-256 of that string. The server normalises to the hash form
before proposing the Raft op so the actual token never enters
replicated state. A reason may be attached for audit.
Fields§
§token_or_hash: StringEither the raw token envelope (b64 string) or its lowercase hex SHA-256. The handler auto-detects which: 64 lowercase hex chars is treated as a hash; anything else is hashed before insertion.
reason: Option<String>Optional human-readable reason recorded in the audit log (NOT replicated — local to the leader that processed the request).
Trait Implementations§
Source§impl Clone for RevokeTokenRequest
impl Clone for RevokeTokenRequest
Source§fn clone(&self) -> RevokeTokenRequest
fn clone(&self) -> RevokeTokenRequest
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 RevokeTokenRequest
impl ComposeSchema for RevokeTokenRequest
Source§impl Debug for RevokeTokenRequest
impl Debug for RevokeTokenRequest
Source§impl<'de> Deserialize<'de> for RevokeTokenRequest
impl<'de> Deserialize<'de> for RevokeTokenRequest
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 RevokeTokenRequest
impl Serialize for RevokeTokenRequest
Auto Trait Implementations§
impl Freeze for RevokeTokenRequest
impl RefUnwindSafe for RevokeTokenRequest
impl Send for RevokeTokenRequest
impl Sync for RevokeTokenRequest
impl Unpin for RevokeTokenRequest
impl UnsafeUnpin for RevokeTokenRequest
impl UnwindSafe for RevokeTokenRequest
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