pub struct ThreadGenesis {
pub version: u16,
pub spool: String,
pub parent: Option<ContentHash>,
pub base: StateId,
pub name: String,
pub intent: String,
pub owner: GenesisOwner,
pub creator: [u8; 32],
pub nonce: Vec<u8>,
}Fields§
§version: u16§spool: StringCanonical non-nil UUID shared by local and hosted replicas. Mutable namespace/name addresses and native spool-link locators are not identity.
parent: Option<ContentHash>§base: StateId§name: String§intent: String§owner: GenesisOwnerImmutable original ownership; uploading does not transfer it.
creator: [u8; 32]§nonce: Vec<u8>Implementations§
Source§impl ThreadGenesis
impl ThreadGenesis
pub fn encode(&self) -> Result<Vec<u8>, HeddleError>
pub fn id(&self) -> Result<ContentHash, HeddleError>
pub fn decode(bytes: &[u8]) -> Result<ThreadGenesis, HeddleError>
Trait Implementations§
Source§impl Clone for ThreadGenesis
impl Clone for ThreadGenesis
Source§fn clone(&self) -> ThreadGenesis
fn clone(&self) -> ThreadGenesis
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 ThreadGenesis
impl Debug for ThreadGenesis
Source§impl<'de> Deserialize<'de> for ThreadGenesis
impl<'de> Deserialize<'de> for ThreadGenesis
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ThreadGenesis, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ThreadGenesis, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for ThreadGenesis
Source§impl PartialEq for ThreadGenesis
impl PartialEq for ThreadGenesis
Source§impl Serialize for ThreadGenesis
impl Serialize for ThreadGenesis
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 ThreadGenesis
Auto Trait Implementations§
impl Freeze for ThreadGenesis
impl RefUnwindSafe for ThreadGenesis
impl Send for ThreadGenesis
impl Sync for ThreadGenesis
impl Unpin for ThreadGenesis
impl UnsafeUnpin for ThreadGenesis
impl UnwindSafe for ThreadGenesis
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