pub struct AclState {
pub epoch: u64,
pub grants: BTreeMap<PublicKey, WriterGrant>,
}Expand description
ACL grant log with epoch numbers. Owner-signed as a whole via the
surrounding SignedField. Phase 1.0 keeps this empty (epoch = 0,
no grants); Phase 1.1 adds grant/revoke via dedicated CLI commands.
Fields§
§epoch: u64Current ACL epoch.
grants: BTreeMap<PublicKey, WriterGrant>Map from writer public key to grant info. Never pruned, only
tombstoned via revoked_at_epoch. See the issue spec for why.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AclState
impl<'de> Deserialize<'de> for AclState
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 AclState
impl StructuralPartialEq for AclState
Auto Trait Implementations§
impl Freeze for AclState
impl RefUnwindSafe for AclState
impl Send for AclState
impl Sync for AclState
impl Unpin for AclState
impl UnsafeUnpin for AclState
impl UnwindSafe for AclState
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