pub enum DataProposalParent {
LaneRoot(LaneId),
DP(DataProposalHash),
}Variants§
LaneRoot(LaneId)
DP(DataProposalHash)
Implementations§
Source§impl DataProposalParent
impl DataProposalParent
pub fn dp_hash(&self) -> Option<&DataProposalHash>
pub fn lane_id(&self) -> Option<&LaneId>
pub fn is_lane_root(&self) -> bool
pub fn as_tx_parent_hash(&self) -> DataProposalHash
Trait Implementations§
Source§impl BorshDeserialize for DataProposalParent
impl BorshDeserialize for DataProposalParent
fn deserialize_reader<__R: Read>(reader: &mut __R) -> Result<Self, Error>
Source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
Source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where
R: Read,
Source§impl BorshSerialize for DataProposalParent
impl BorshSerialize for DataProposalParent
Source§impl Clone for DataProposalParent
impl Clone for DataProposalParent
Source§fn clone(&self) -> DataProposalParent
fn clone(&self) -> DataProposalParent
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl ComposeSchema for DataProposalParent
impl ComposeSchema for DataProposalParent
Source§impl Debug for DataProposalParent
impl Debug for DataProposalParent
Source§impl<'de> Deserialize<'de> for DataProposalParent
impl<'de> Deserialize<'de> for DataProposalParent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl EnumExt for DataProposalParent
impl EnumExt for DataProposalParent
Source§impl Hash for DataProposalParent
impl Hash for DataProposalParent
Source§impl Ord for DataProposalParent
impl Ord for DataProposalParent
Source§fn cmp(&self, other: &DataProposalParent) -> Ordering
fn cmp(&self, other: &DataProposalParent) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for DataProposalParent
impl PartialEq for DataProposalParent
Source§impl PartialOrd for DataProposalParent
impl PartialOrd for DataProposalParent
Source§impl Serialize for DataProposalParent
impl Serialize for DataProposalParent
Source§impl ToSchema for DataProposalParent
impl ToSchema for DataProposalParent
impl Eq for DataProposalParent
impl StructuralPartialEq for DataProposalParent
Auto Trait Implementations§
impl Freeze for DataProposalParent
impl RefUnwindSafe for DataProposalParent
impl Send for DataProposalParent
impl Sync for DataProposalParent
impl Unpin for DataProposalParent
impl UnsafeUnpin for DataProposalParent
impl UnwindSafe for DataProposalParent
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,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
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.