pub struct ConsentRevocationCore {
pub request_id: u64,
pub revoker_pubkey: [u8; 32],
pub session_fingerprint: [u8; 32],
pub issued_at: u64,
pub reason: String,
}Available on crate feature
consent only.Expand description
Asymmetric session termination. Either peer may send this at any time
after a successful consent; subsequent FRAME payloads on the session
return crate::WireError::ConsentRevoked. Sealed with
crate::PAYLOAD_TYPE_CONSENT_REVOCATION (0x22).
Canonical field order (draft-03): request_id, revoker_pubkey,
session_fingerprint, issued_at, reason.
Fields§
§request_id: u64References the request_id being revoked.
revoker_pubkey: [u8; 32]Public key of the revoker (either party may revoke).
session_fingerprint: [u8; 32]Session binding (draft-03). Same derivation as on
ConsentRequestCore::session_fingerprint.
issued_at: u64Unix epoch seconds at which the revocation was issued.
reason: StringFree-text reason (displayed to the counterparty).
Trait Implementations§
Source§impl Clone for ConsentRevocationCore
impl Clone for ConsentRevocationCore
Source§fn clone(&self) -> ConsentRevocationCore
fn clone(&self) -> ConsentRevocationCore
Returns a duplicate of the value. Read more
1.0.0 · 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 ConsentRevocationCore
impl Debug for ConsentRevocationCore
Source§impl<'de> Deserialize<'de> for ConsentRevocationCore
impl<'de> Deserialize<'de> for ConsentRevocationCore
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 PartialEq for ConsentRevocationCore
impl PartialEq for ConsentRevocationCore
Source§impl Serialize for ConsentRevocationCore
impl Serialize for ConsentRevocationCore
impl Eq for ConsentRevocationCore
impl StructuralPartialEq for ConsentRevocationCore
Auto Trait Implementations§
impl Freeze for ConsentRevocationCore
impl RefUnwindSafe for ConsentRevocationCore
impl Send for ConsentRevocationCore
impl Sync for ConsentRevocationCore
impl Unpin for ConsentRevocationCore
impl UnsafeUnpin for ConsentRevocationCore
impl UnwindSafe for ConsentRevocationCore
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