pub struct ThreadAuthorityAdmission {
pub version: u16,
pub basis: AdmissionBasis,
pub spool: Uuid,
pub spool_genesis: ContentHash,
pub thread: ContentHash,
pub subject: OriginalAuthoritySubject,
pub actor: CollaborationActor,
pub publisher: [u8; 32],
pub authority_digest: ContentHash,
pub executor: [u8; 32],
pub admitted_at_ms: i64,
}Fields§
§version: u16§basis: AdmissionBasis§spool: Uuid§spool_genesis: ContentHash§thread: ContentHash§subject: OriginalAuthoritySubject§actor: CollaborationActor§publisher: [u8; 32]§executor: [u8; 32]§admitted_at_ms: i64Executor-observed first durable admission, never supplied by the author. This timestamp does not revive an expired credential at fresh admission.
Implementations§
Source§impl ThreadAuthorityAdmission
impl ThreadAuthorityAdmission
pub fn encode(&self) -> Result<Vec<u8>, HeddleError>
pub fn decode(bytes: &[u8]) -> Result<ThreadAuthorityAdmission, HeddleError>
Compare testimony with an independently admitted immutable Spool/executor pin and the original operation. Caller also verifies both signatures.
Trait Implementations§
Source§impl Clone for ThreadAuthorityAdmission
impl Clone for ThreadAuthorityAdmission
Source§fn clone(&self) -> ThreadAuthorityAdmission
fn clone(&self) -> ThreadAuthorityAdmission
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 ThreadAuthorityAdmission
impl Debug for ThreadAuthorityAdmission
Source§impl<'de> Deserialize<'de> for ThreadAuthorityAdmission
impl<'de> Deserialize<'de> for ThreadAuthorityAdmission
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ThreadAuthorityAdmission, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ThreadAuthorityAdmission, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ThreadAuthorityAdmission
Source§impl PartialEq for ThreadAuthorityAdmission
impl PartialEq for ThreadAuthorityAdmission
Source§impl Serialize for ThreadAuthorityAdmission
impl Serialize for ThreadAuthorityAdmission
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ThreadAuthorityAdmission
Auto Trait Implementations§
impl Freeze for ThreadAuthorityAdmission
impl RefUnwindSafe for ThreadAuthorityAdmission
impl Send for ThreadAuthorityAdmission
impl Sync for ThreadAuthorityAdmission
impl Unpin for ThreadAuthorityAdmission
impl UnsafeUnpin for ThreadAuthorityAdmission
impl UnwindSafe for ThreadAuthorityAdmission
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