Struct hedera::ContractNonceInfo
source · pub struct ContractNonceInfo {
pub contract_id: ContractId,
pub nonce: u64,
}
Expand description
Info about a contract account’s nonce value. The nonce for a contract is only incremented when that contract creates another contract.
Fields§
§contract_id: ContractId
The contract’s ID.
nonce: u64
The contract’s nonce.
Implementations§
source§impl ContractNonceInfo
impl ContractNonceInfo
sourcepub fn from_bytes(bytes: &[u8]) -> Result<Self>
pub fn from_bytes(bytes: &[u8]) -> Result<Self>
Create a new ContractNonceInfo
from protobuf-encoded bytes
.
§Errors
Error::FromProtobuf
if decoding the bytes fails to produce a valid protobuf.Error::FromProtobuf
if decoding the protobuf fails.
Trait Implementations§
source§impl Clone for ContractNonceInfo
impl Clone for ContractNonceInfo
source§fn clone(&self) -> ContractNonceInfo
fn clone(&self) -> ContractNonceInfo
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 ContractNonceInfo
impl Debug for ContractNonceInfo
source§impl PartialEq for ContractNonceInfo
impl PartialEq for ContractNonceInfo
source§fn eq(&self, other: &ContractNonceInfo) -> bool
fn eq(&self, other: &ContractNonceInfo) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for ContractNonceInfo
impl StructuralPartialEq for ContractNonceInfo
Auto Trait Implementations§
impl Freeze for ContractNonceInfo
impl RefUnwindSafe for ContractNonceInfo
impl Send for ContractNonceInfo
impl Sync for ContractNonceInfo
impl Unpin for ContractNonceInfo
impl UnwindSafe for ContractNonceInfo
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<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.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.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request