pub struct AuthorityCitation {
pub entity_id: [u8; 32],
pub version: u64,
pub edition_hash: [u8; 32],
}Expand description
The pinned authority an actor claims for an action (mechanism a). Points at the actor’s own authorizing edition (their Grant — or a RoleMetadata for a role-position claim) by stable coordinate + the exact version/hash, so the verifier resolves authority against that frozen point, not its own possibly-lagging-or-ahead live roster.
Fields§
§entity_id: [u8; 32]The authorizing edition’s entity id (e.g. grant_locator(community_id, actor)).
version: u64The version of that edition the actor claims authority under.
edition_hash: [u8; 32]That edition’s version::edition_hash — pins the exact content, not just the version number.
Implementations§
Source§impl AuthorityCitation
impl AuthorityCitation
Extract the citation from an event’s tags, or None if absent. A malformed vac (bad hex /
unparseable version) returns None — the verifier then treats the action as uncited (owner-only
or rejected), never trusting a corrupt citation.
Trait Implementations§
Source§impl Clone for AuthorityCitation
impl Clone for AuthorityCitation
Source§fn clone(&self) -> AuthorityCitation
fn clone(&self) -> AuthorityCitation
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 AuthorityCitation
impl Debug for AuthorityCitation
Source§impl<'de> Deserialize<'de> for AuthorityCitation
impl<'de> Deserialize<'de> for AuthorityCitation
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>,
impl Eq for AuthorityCitation
Source§impl PartialEq for AuthorityCitation
impl PartialEq for AuthorityCitation
Source§impl Serialize for AuthorityCitation
impl Serialize for AuthorityCitation
impl StructuralPartialEq for AuthorityCitation
Auto Trait Implementations§
impl Freeze for AuthorityCitation
impl RefUnwindSafe for AuthorityCitation
impl Send for AuthorityCitation
impl Sync for AuthorityCitation
impl Unpin for AuthorityCitation
impl UnsafeUnpin for AuthorityCitation
impl UnwindSafe for AuthorityCitation
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more