Struct GithubComSatstreamSsUtilsRpcBlock

Source
pub struct GithubComSatstreamSsUtilsRpcBlock { /* private fields */ }

Implementations§

Source§

impl GithubComSatstreamSsUtilsRpcBlock

Source

pub fn new() -> GithubComSatstreamSsUtilsRpcBlock

Source

pub fn set_bits(&mut self, bits: String)

Source

pub fn with_bits(self, bits: String) -> GithubComSatstreamSsUtilsRpcBlock

Source

pub fn bits(&self) -> Option<&String>

Source

pub fn reset_bits(&mut self)

Source

pub fn set_chainwork(&mut self, chainwork: String)

Source

pub fn with_chainwork( self, chainwork: String, ) -> GithubComSatstreamSsUtilsRpcBlock

Source

pub fn chainwork(&self) -> Option<&String>

Source

pub fn reset_chainwork(&mut self)

Source

pub fn set_confirmations(&mut self, confirmations: i32)

Source

pub fn with_confirmations( self, confirmations: i32, ) -> GithubComSatstreamSsUtilsRpcBlock

Source

pub fn confirmations(&self) -> Option<&i32>

Source

pub fn reset_confirmations(&mut self)

Source

pub fn set_difficulty(&mut self, difficulty: f32)

Source

pub fn with_difficulty( self, difficulty: f32, ) -> GithubComSatstreamSsUtilsRpcBlock

Source

pub fn difficulty(&self) -> Option<&f32>

Source

pub fn reset_difficulty(&mut self)

Source

pub fn set_hash(&mut self, hash: String)

Source

pub fn with_hash(self, hash: String) -> GithubComSatstreamSsUtilsRpcBlock

Source

pub fn hash(&self) -> Option<&String>

Source

pub fn reset_hash(&mut self)

Source

pub fn set_height(&mut self, height: i32)

Source

pub fn with_height(self, height: i32) -> GithubComSatstreamSsUtilsRpcBlock

Source

pub fn height(&self) -> Option<&i32>

Source

pub fn reset_height(&mut self)

Source

pub fn set_mediantime(&mut self, mediantime: i32)

Source

pub fn with_mediantime( self, mediantime: i32, ) -> GithubComSatstreamSsUtilsRpcBlock

Source

pub fn mediantime(&self) -> Option<&i32>

Source

pub fn reset_mediantime(&mut self)

Source

pub fn set_merkleroot(&mut self, merkleroot: String)

Source

pub fn with_merkleroot( self, merkleroot: String, ) -> GithubComSatstreamSsUtilsRpcBlock

Source

pub fn merkleroot(&self) -> Option<&String>

Source

pub fn reset_merkleroot(&mut self)

Source

pub fn set_n_tx(&mut self, n_tx: i32)

Source

pub fn with_n_tx(self, n_tx: i32) -> GithubComSatstreamSsUtilsRpcBlock

Source

pub fn n_tx(&self) -> Option<&i32>

Source

pub fn reset_n_tx(&mut self)

Source

pub fn set_nonce(&mut self, nonce: i32)

Source

pub fn with_nonce(self, nonce: i32) -> GithubComSatstreamSsUtilsRpcBlock

Source

pub fn nonce(&self) -> Option<&i32>

Source

pub fn reset_nonce(&mut self)

Source

pub fn set_previousblockhash(&mut self, previousblockhash: String)

Source

pub fn with_previousblockhash( self, previousblockhash: String, ) -> GithubComSatstreamSsUtilsRpcBlock

Source

pub fn previousblockhash(&self) -> Option<&String>

Source

pub fn reset_previousblockhash(&mut self)

Source

pub fn set_size(&mut self, size: i32)

Source

pub fn with_size(self, size: i32) -> GithubComSatstreamSsUtilsRpcBlock

Source

pub fn size(&self) -> Option<&i32>

Source

pub fn reset_size(&mut self)

Source

pub fn set_stripped_size(&mut self, stripped_size: i32)

Source

pub fn with_stripped_size( self, stripped_size: i32, ) -> GithubComSatstreamSsUtilsRpcBlock

Source

pub fn stripped_size(&self) -> Option<&i32>

Source

pub fn reset_stripped_size(&mut self)

Source

pub fn set_time(&mut self, time: i32)

Source

pub fn with_time(self, time: i32) -> GithubComSatstreamSsUtilsRpcBlock

Source

pub fn time(&self) -> Option<&i32>

Source

pub fn reset_time(&mut self)

Source

pub fn set_tx(&mut self, tx: Vec<GithubComSatstreamSsUtilsRpcBtcTx>)

Source

pub fn with_tx( self, tx: Vec<GithubComSatstreamSsUtilsRpcBtcTx>, ) -> GithubComSatstreamSsUtilsRpcBlock

Source

pub fn tx(&self) -> Option<&Vec<GithubComSatstreamSsUtilsRpcBtcTx>>

Source

pub fn reset_tx(&mut self)

Source

pub fn set_version(&mut self, version: i32)

Source

pub fn with_version(self, version: i32) -> GithubComSatstreamSsUtilsRpcBlock

Source

pub fn version(&self) -> Option<&i32>

Source

pub fn reset_version(&mut self)

Source

pub fn set_version_hex(&mut self, version_hex: String)

Source

pub fn with_version_hex( self, version_hex: String, ) -> GithubComSatstreamSsUtilsRpcBlock

Source

pub fn version_hex(&self) -> Option<&String>

Source

pub fn reset_version_hex(&mut self)

Source

pub fn set_weight(&mut self, weight: i32)

Source

pub fn with_weight(self, weight: i32) -> GithubComSatstreamSsUtilsRpcBlock

Source

pub fn weight(&self) -> Option<&i32>

Source

pub fn reset_weight(&mut self)

Trait Implementations§

Source§

impl Debug for GithubComSatstreamSsUtilsRpcBlock

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'de> Deserialize<'de> for GithubComSatstreamSsUtilsRpcBlock

Source§

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 Serialize for GithubComSatstreamSsUtilsRpcBlock

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,