pub struct RevokeSessionRequest {
pub session_id: String,
}Expand description
Trust-task payload for spec/auth/revoke-session/0.1 (request)
— revoke a single session by id.
Authorisation: the caller (via AuthClaims) must own the session
OR have Role::Admin. Enforced in the dispatcher handler, not the
schema.
Fields§
§session_id: StringIdentifier of the session to revoke.
Trait Implementations§
Source§impl Clone for RevokeSessionRequest
impl Clone for RevokeSessionRequest
Source§fn clone(&self) -> RevokeSessionRequest
fn clone(&self) -> RevokeSessionRequest
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 Debug for RevokeSessionRequest
impl Debug for RevokeSessionRequest
Source§impl<'de> Deserialize<'de> for RevokeSessionRequest
impl<'de> Deserialize<'de> for RevokeSessionRequest
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 RevokeSessionRequest
impl RefUnwindSafe for RevokeSessionRequest
impl Send for RevokeSessionRequest
impl Sync for RevokeSessionRequest
impl Unpin for RevokeSessionRequest
impl UnsafeUnpin for RevokeSessionRequest
impl UnwindSafe for RevokeSessionRequest
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