Struct ns_protocol::state::Inscription
source · pub struct Inscription {Show 13 fields
pub name: String,
pub sequence: u64,
pub height: u64,
pub name_height: u64,
pub previous_hash: Vec<u8>,
pub name_hash: Vec<u8>,
pub service_hash: Vec<u8>,
pub protocol_hash: Option<Vec<u8>>,
pub block_hash: Vec<u8>,
pub block_height: u64,
pub txid: Vec<u8>,
pub vin: u8,
pub data: Name,
}
Fields§
§name: String
§sequence: u64
§height: u64
§name_height: u64
§previous_hash: Vec<u8>
§name_hash: Vec<u8>
§service_hash: Vec<u8>
§protocol_hash: Option<Vec<u8>>
§block_hash: Vec<u8>
§block_height: u64
§txid: Vec<u8>
§vin: u8
§data: Name
Implementations§
Trait Implementations§
source§impl Clone for Inscription
impl Clone for Inscription
source§fn clone(&self) -> Inscription
fn clone(&self) -> Inscription
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 Inscription
impl Debug for Inscription
source§impl Default for Inscription
impl Default for Inscription
source§fn default() -> Inscription
fn default() -> Inscription
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for Inscription
impl<'de> Deserialize<'de> for Inscription
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 PartialEq for Inscription
impl PartialEq for Inscription
source§fn eq(&self, other: &Inscription) -> bool
fn eq(&self, other: &Inscription) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Serialize for Inscription
impl Serialize for Inscription
impl StructuralPartialEq for Inscription
Auto Trait Implementations§
impl RefUnwindSafe for Inscription
impl Send for Inscription
impl Sync for Inscription
impl Unpin for Inscription
impl UnwindSafe for Inscription
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