pub struct Revoke {
pub request_id: String,
pub client_id: String,
pub service_id: Option<String>,
pub permissions: Vec<String>,
}Expand description
Client to server: take permissions away. An empty permissions list removes every permission of
client_id at that scope. Revoking a client from a service also triggers a revocation rotation
of that service alone: the client is removed from the file and gets Loss{REVOKED}.
Fields§
§request_id: String§client_id: String§service_id: Option<String>§permissions: Vec<String>Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Revoke
impl<'de> Deserialize<'de> for Revoke
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
impl Eq for Revoke
impl StructuralPartialEq for Revoke
Auto Trait Implementations§
impl Freeze for Revoke
impl RefUnwindSafe for Revoke
impl Send for Revoke
impl Sync for Revoke
impl Unpin for Revoke
impl UnsafeUnpin for Revoke
impl UnwindSafe for Revoke
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