pub struct KeyBinding {
pub operator: String,
pub channel: Option<String>,
pub bound_at: u64,
pub revoked: Option<Revocation>,
}Expand description
One actor key’s durable binding to an operator identity, as the fold
sees it after replaying OpKind::BindKey and OpKind::RevokeKey.
Fields§
§operator: StringThe operator identity this key belongs to. Fixed at first binding.
channel: Option<String>The channel the operator asserts this key speaks as, if any. The only field a later re-binding may change.
bound_at: u64Log sequence of the op that first bound this key.
This is the age primitive: it is assigned once and never moves, so
it orders keys by standing in a way replay reproduces exactly. It
counts sequenced ops, not elapsed time — see
View::ops_since_binding for what that can and cannot answer.
revoked: Option<Revocation>The withdrawal record, once revoked; never cleared.
Implementations§
Source§impl KeyBinding
impl KeyBinding
Sourcepub fn is_revoked(&self) -> bool
pub fn is_revoked(&self) -> bool
Whether this binding has been withdrawn. Authorization must ask;
attribution must not (see View::operator_of).
Trait Implementations§
Source§impl Clone for KeyBinding
impl Clone for KeyBinding
Source§fn clone(&self) -> KeyBinding
fn clone(&self) -> KeyBinding
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for KeyBinding
impl Debug for KeyBinding
Source§impl PartialEq for KeyBinding
impl PartialEq for KeyBinding
Source§fn eq(&self, other: &KeyBinding) -> bool
fn eq(&self, other: &KeyBinding) -> bool
self and other values to be equal, and is used by ==.