pub struct GenesisSelfCheckData {
pub dna_info: DnaInfo,
pub membrane_proof: Option<Arc<SerializedBytes>>,
pub agent_key: HoloHash<Agent>,
}Expand description
Data passed into the genesis_self_check callback for verifying the initial chain entries
Fields§
§dna_info: DnaInfoThe Dna action (1st record)
membrane_proof: Option<Arc<SerializedBytes>>The proof of membership provided by the AgentValidationPkg (2nd record)
agent_key: HoloHash<Agent>The 3rd record of the chain, the agent key
Trait Implementations§
Source§impl Debug for GenesisSelfCheckData
impl Debug for GenesisSelfCheckData
Source§impl<'de> Deserialize<'de> for GenesisSelfCheckData
impl<'de> Deserialize<'de> for GenesisSelfCheckData
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<GenesisSelfCheckData, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<GenesisSelfCheckData, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for GenesisSelfCheckData
impl Serialize for GenesisSelfCheckData
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
Source§impl TryFrom<&GenesisSelfCheckData> for SerializedBytes
impl TryFrom<&GenesisSelfCheckData> for SerializedBytes
Source§type Error = SerializedBytesError
type Error = SerializedBytesError
The type returned in the event of a conversion error.
Source§fn try_from(
t: &GenesisSelfCheckData,
) -> Result<SerializedBytes, SerializedBytesError>
fn try_from( t: &GenesisSelfCheckData, ) -> Result<SerializedBytes, SerializedBytesError>
Performs the conversion.
Source§impl TryFrom<GenesisSelfCheckData> for SerializedBytes
impl TryFrom<GenesisSelfCheckData> for SerializedBytes
Source§type Error = SerializedBytesError
type Error = SerializedBytesError
The type returned in the event of a conversion error.
Source§fn try_from(
t: GenesisSelfCheckData,
) -> Result<SerializedBytes, SerializedBytesError>
fn try_from( t: GenesisSelfCheckData, ) -> Result<SerializedBytes, SerializedBytesError>
Performs the conversion.
Source§impl TryFrom<SerializedBytes> for GenesisSelfCheckData
impl TryFrom<SerializedBytes> for GenesisSelfCheckData
Source§type Error = SerializedBytesError
type Error = SerializedBytesError
The type returned in the event of a conversion error.
Source§fn try_from(
sb: SerializedBytes,
) -> Result<GenesisSelfCheckData, SerializedBytesError>
fn try_from( sb: SerializedBytes, ) -> Result<GenesisSelfCheckData, SerializedBytesError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for GenesisSelfCheckData
impl RefUnwindSafe for GenesisSelfCheckData
impl Send for GenesisSelfCheckData
impl Sync for GenesisSelfCheckData
impl Unpin for GenesisSelfCheckData
impl UnwindSafe for GenesisSelfCheckData
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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