Struct ex3_node_types::chain::ChainIdentifier
source · pub struct ChainIdentifier {
pub chain: Chain,
pub network: u8,
}Fields§
§chain: Chain§network: u8Trait Implementations§
source§impl CandidType for ChainIdentifier
impl CandidType for ChainIdentifier
source§impl Clone for ChainIdentifier
impl Clone for ChainIdentifier
source§fn clone(&self) -> ChainIdentifier
fn clone(&self) -> ChainIdentifier
Returns a copy 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 Debug for ChainIdentifier
impl Debug for ChainIdentifier
source§impl<'de> Deserialize<'de> for ChainIdentifier
impl<'de> Deserialize<'de> for ChainIdentifier
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 Hash for ChainIdentifier
impl Hash for ChainIdentifier
source§impl Ord for ChainIdentifier
impl Ord for ChainIdentifier
source§impl PartialEq for ChainIdentifier
impl PartialEq for ChainIdentifier
source§fn eq(&self, other: &ChainIdentifier) -> bool
fn eq(&self, other: &ChainIdentifier) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd for ChainIdentifier
impl PartialOrd for ChainIdentifier
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moresource§impl Serialize for ChainIdentifier
impl Serialize for ChainIdentifier
source§impl Storable for ChainIdentifier
impl Storable for ChainIdentifier
source§fn from_bytes(bytes: Cow<'_, [u8]>) -> Self
fn from_bytes(bytes: Cow<'_, [u8]>) -> Self
Converts bytes into an element.
source§fn to_bytes_checked(&self) -> Cow<'_, [u8]>
fn to_bytes_checked(&self) -> Cow<'_, [u8]>
Like
to_bytes, but includes additional checks to ensure the element’s serialized bytes
are within the element’s bounds.impl Eq for ChainIdentifier
impl StructuralEq for ChainIdentifier
impl StructuralPartialEq for ChainIdentifier
Auto Trait Implementations§
impl RefUnwindSafe for ChainIdentifier
impl Send for ChainIdentifier
impl Sync for ChainIdentifier
impl Unpin for ChainIdentifier
impl UnwindSafe for ChainIdentifier
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