pub struct GenesisSelfCheckDataV1 {
pub dna_info: DnaInfoV1,
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: DnaInfoV1The 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 GenesisSelfCheckDataV1
impl Debug for GenesisSelfCheckDataV1
Source§impl<'de> Deserialize<'de> for GenesisSelfCheckDataV1
impl<'de> Deserialize<'de> for GenesisSelfCheckDataV1
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<GenesisSelfCheckDataV1, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<GenesisSelfCheckDataV1, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for GenesisSelfCheckDataV1
impl Serialize for GenesisSelfCheckDataV1
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<&GenesisSelfCheckDataV1> for SerializedBytes
impl TryFrom<&GenesisSelfCheckDataV1> for SerializedBytes
Source§type Error = SerializedBytesError
type Error = SerializedBytesError
The type returned in the event of a conversion error.
Source§fn try_from(
t: &GenesisSelfCheckDataV1,
) -> Result<SerializedBytes, SerializedBytesError>
fn try_from( t: &GenesisSelfCheckDataV1, ) -> Result<SerializedBytes, SerializedBytesError>
Performs the conversion.
Source§impl TryFrom<GenesisSelfCheckDataV1> for SerializedBytes
impl TryFrom<GenesisSelfCheckDataV1> for SerializedBytes
Source§type Error = SerializedBytesError
type Error = SerializedBytesError
The type returned in the event of a conversion error.
Source§fn try_from(
t: GenesisSelfCheckDataV1,
) -> Result<SerializedBytes, SerializedBytesError>
fn try_from( t: GenesisSelfCheckDataV1, ) -> Result<SerializedBytes, SerializedBytesError>
Performs the conversion.
Source§impl TryFrom<SerializedBytes> for GenesisSelfCheckDataV1
impl TryFrom<SerializedBytes> for GenesisSelfCheckDataV1
Source§type Error = SerializedBytesError
type Error = SerializedBytesError
The type returned in the event of a conversion error.
Source§fn try_from(
sb: SerializedBytes,
) -> Result<GenesisSelfCheckDataV1, SerializedBytesError>
fn try_from( sb: SerializedBytes, ) -> Result<GenesisSelfCheckDataV1, SerializedBytesError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for GenesisSelfCheckDataV1
impl RefUnwindSafe for GenesisSelfCheckDataV1
impl Send for GenesisSelfCheckDataV1
impl Sync for GenesisSelfCheckDataV1
impl Unpin for GenesisSelfCheckDataV1
impl UnsafeUnpin for GenesisSelfCheckDataV1
impl UnwindSafe for GenesisSelfCheckDataV1
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