pub struct WriterGrant {
pub granted_at_epoch: u64,
pub revoked_at_epoch: Option<u64>,
}Expand description
Per-writer ACL grant. Phase 1.0 schema includes this for forward compat
but validate_state ignores it — only the owner is authorized.
Fields§
§granted_at_epoch: u64ACL epoch at which the grant was issued.
revoked_at_epoch: Option<u64>None = currently authorized; Some(e) = revoked at epoch e.
Trait Implementations§
Source§impl Clone for WriterGrant
impl Clone for WriterGrant
Source§fn clone(&self) -> WriterGrant
fn clone(&self) -> WriterGrant
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 WriterGrant
impl Debug for WriterGrant
Source§impl<'de> Deserialize<'de> for WriterGrant
impl<'de> Deserialize<'de> for WriterGrant
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 WriterGrant
impl PartialEq for WriterGrant
Source§fn eq(&self, other: &WriterGrant) -> bool
fn eq(&self, other: &WriterGrant) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for WriterGrant
impl Serialize for WriterGrant
impl Eq for WriterGrant
impl StructuralPartialEq for WriterGrant
Auto Trait Implementations§
impl Freeze for WriterGrant
impl RefUnwindSafe for WriterGrant
impl Send for WriterGrant
impl Sync for WriterGrant
impl Unpin for WriterGrant
impl UnsafeUnpin for WriterGrant
impl UnwindSafe for WriterGrant
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