pub struct ThreadOwnershipResolution {
pub version: u16,
pub spool: Uuid,
pub thread: ContentHash,
pub winning_claim: ContentHash,
pub conflicting_claims: BTreeSet<ContentHash>,
pub frontier: BTreeSet<ContentHash>,
pub local_owner: [u8; 32],
pub accepting_publisher: [u8; 32],
pub acceptance: SourceAuthor,
pub occurred_at_ms: i64,
}Fields§
§version: u16§spool: Uuid§thread: ContentHashThread identity being adjudicated.
winning_claim: ContentHashClaim id of the surviving claim; must be a member of conflicting_claims.
conflicting_claims: BTreeSet<ContentHash>The full stored conflicting claim-id set, including the winner (>= 2).
frontier: BTreeSet<ContentHash>Complete accepted source frontier observed at resolution time.
local_owner: [u8; 32]Immutable original local owner who chooses the surviving claim.
accepting_publisher: [u8; 32]Fresh recipient publisher accepting the chosen account ownership.
acceptance: SourceAuthor§occurred_at_ms: i64Implementations§
Source§impl ThreadOwnershipResolution
impl ThreadOwnershipResolution
pub fn encode(&self) -> Result<Vec<u8>, HeddleError>
pub fn decode(bytes: &[u8]) -> Result<ThreadOwnershipResolution, HeddleError>
pub fn id(&self) -> Result<ContentHash, HeddleError>
pub fn validate_genesis( &self, genesis: &ThreadGenesis, ) -> Result<(), HeddleError>
pub fn account(&self) -> Result<Uuid, HeddleError>
Trait Implementations§
Source§impl Clone for ThreadOwnershipResolution
impl Clone for ThreadOwnershipResolution
Source§fn clone(&self) -> ThreadOwnershipResolution
fn clone(&self) -> ThreadOwnershipResolution
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 ThreadOwnershipResolution
impl Debug for ThreadOwnershipResolution
Source§impl<'de> Deserialize<'de> for ThreadOwnershipResolution
impl<'de> Deserialize<'de> for ThreadOwnershipResolution
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ThreadOwnershipResolution, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ThreadOwnershipResolution, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ThreadOwnershipResolution
Source§impl Serialize for ThreadOwnershipResolution
impl Serialize for ThreadOwnershipResolution
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 ThreadOwnershipResolution
Auto Trait Implementations§
impl Freeze for ThreadOwnershipResolution
impl RefUnwindSafe for ThreadOwnershipResolution
impl Send for ThreadOwnershipResolution
impl Sync for ThreadOwnershipResolution
impl Unpin for ThreadOwnershipResolution
impl UnsafeUnpin for ThreadOwnershipResolution
impl UnwindSafe for ThreadOwnershipResolution
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