pub struct OpenChainData {
pub prev_target: MigrationTarget,
pub close_hash: HoloHash<Action>,
}Expand description
Per-variant data for ActionType::OpenChain.
The author, timestamp, action_seq, and prev_action fields live on
ActionHeader; only the chain-open-specific fields go here.
Fields§
§prev_target: MigrationTargetThe previous DNA hash or agent key this chain migrated from.
close_hash: HoloHash<Action>Hash of the matching CloseChain action on the old chain.
Trait Implementations§
Source§impl Clone for OpenChainData
impl Clone for OpenChainData
Source§fn clone(&self) -> OpenChainData
fn clone(&self) -> OpenChainData
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 OpenChainData
impl Debug for OpenChainData
Source§impl<'de> Deserialize<'de> for OpenChainData
impl<'de> Deserialize<'de> for OpenChainData
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<OpenChainData, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<OpenChainData, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for OpenChainData
Source§impl Hash for OpenChainData
impl Hash for OpenChainData
Source§impl PartialEq for OpenChainData
impl PartialEq for OpenChainData
Source§impl Serialize for OpenChainData
impl Serialize for OpenChainData
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 OpenChainData
Source§impl TryFrom<&OpenChainData> for SerializedBytes
impl TryFrom<&OpenChainData> for SerializedBytes
Source§type Error = SerializedBytesError
type Error = SerializedBytesError
The type returned in the event of a conversion error.
Source§fn try_from(t: &OpenChainData) -> Result<SerializedBytes, SerializedBytesError>
fn try_from(t: &OpenChainData) -> Result<SerializedBytes, SerializedBytesError>
Performs the conversion.
Source§impl TryFrom<OpenChainData> for SerializedBytes
impl TryFrom<OpenChainData> for SerializedBytes
Source§type Error = SerializedBytesError
type Error = SerializedBytesError
The type returned in the event of a conversion error.
Source§fn try_from(t: OpenChainData) -> Result<SerializedBytes, SerializedBytesError>
fn try_from(t: OpenChainData) -> Result<SerializedBytes, SerializedBytesError>
Performs the conversion.
Source§impl TryFrom<SerializedBytes> for OpenChainData
impl TryFrom<SerializedBytes> for OpenChainData
Source§type Error = SerializedBytesError
type Error = SerializedBytesError
The type returned in the event of a conversion error.
Source§fn try_from(sb: SerializedBytes) -> Result<OpenChainData, SerializedBytesError>
fn try_from(sb: SerializedBytes) -> Result<OpenChainData, SerializedBytesError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for OpenChainData
impl RefUnwindSafe for OpenChainData
impl Send for OpenChainData
impl Sync for OpenChainData
impl Unpin for OpenChainData
impl UnsafeUnpin for OpenChainData
impl UnwindSafe for OpenChainData
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.