pub struct DeviceRevokeResult {
pub token: String,
pub endpoint: String,
pub user_id: String,
}Expand description
Result of Request::DeviceRevoke: the portable token, and what it says.
Fields§
§token: StringThe signed statement, mcpmesh-revoke:<base64url>. Hand this to your peers.
Not a secret — it authorizes nothing and grants nothing; it only asks that an endpoint be treated as dead, and only peers who already trust the signer will act on it.
endpoint: StringThe eid: it revokes, echoed so a caller can confirm they named the device they meant.
user_id: StringThe signing b64u: user_id — the identity your peers already pinned.
Trait Implementations§
Source§impl Clone for DeviceRevokeResult
impl Clone for DeviceRevokeResult
Source§fn clone(&self) -> DeviceRevokeResult
fn clone(&self) -> DeviceRevokeResult
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 DeviceRevokeResult
impl Debug for DeviceRevokeResult
Source§impl Default for DeviceRevokeResult
impl Default for DeviceRevokeResult
Source§fn default() -> DeviceRevokeResult
fn default() -> DeviceRevokeResult
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for DeviceRevokeResult
impl<'de> Deserialize<'de> for DeviceRevokeResult
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 DeviceRevokeResult
Source§impl PartialEq for DeviceRevokeResult
impl PartialEq for DeviceRevokeResult
Source§impl Serialize for DeviceRevokeResult
impl Serialize for DeviceRevokeResult
impl StructuralPartialEq for DeviceRevokeResult
Auto Trait Implementations§
impl Freeze for DeviceRevokeResult
impl RefUnwindSafe for DeviceRevokeResult
impl Send for DeviceRevokeResult
impl Sync for DeviceRevokeResult
impl Unpin for DeviceRevokeResult
impl UnsafeUnpin for DeviceRevokeResult
impl UnwindSafe for DeviceRevokeResult
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