Struct hedera::AccountInfo

source ·
pub struct AccountInfo {
Show 19 fields pub account_id: AccountId, pub contract_account_id: String, pub is_deleted: bool, pub proxy_account_id: Option<AccountId>, pub proxy_received: Hbar, pub key: Key, pub balance: Hbar, pub send_record_threshold: Hbar, pub receive_record_threshold: Hbar, pub is_receiver_signature_required: bool, pub expiration_time: Option<OffsetDateTime>, pub auto_renew_period: Option<Duration>, pub account_memo: String, pub owned_nfts: u64, pub max_automatic_token_associations: u32, pub alias_key: Option<PublicKey>, pub ethereum_nonce: u64, pub ledger_id: LedgerId, pub staking: Option<StakingInfo>,
}
Expand description

Response from AccountInfoQuery.

Fields§

§account_id: AccountId

The account that is being referenced.

§contract_account_id: String

The Contract Account ID comprising of both the contract instance and the cryptocurrency account owned by the contract instance, in the format used by Solidity.

§is_deleted: bool

If true, then this account has been deleted, it will disappear when it expires, and all transactions for it will fail except the transaction to extend its expiration date.

§proxy_account_id: Option<AccountId>
👎Deprecated

The Account ID of the account to which this is proxy staked.

If proxy_account_id is None, an invalid account, or an account that isn’t a node, then this account is automatically proxy staked to a node chosen by the network, but without earning payments.

If the proxy_account_id account refuses to accept proxy staking, or if it is not currently running a node, then it will behave as if proxy_account_id is None.

§proxy_received: Hbar

The total number of hbars proxy staked to this account.

§key: Key

The key for the account, which must sign in order to transfer out, or to modify the account in any way other than extending its expiration date.

§balance: Hbar

Current balance of the referenced account.

§send_record_threshold: Hbar
👎Deprecated

The threshold amount for which an account record is created (and this account charged for them) for any send/withdraw transaction.

§receive_record_threshold: Hbar
👎Deprecated

The threshold amount for which an account record is created (and this account charged for them) for any transaction above this amount.

§is_receiver_signature_required: bool

If true, no transaction can transfer to this account unless signed by this account’s key.

§expiration_time: Option<OffsetDateTime>

The time at which this account is set to expire.

§auto_renew_period: Option<Duration>

The duration for expiration time will extend every this many seconds.

§account_memo: String

The memo associated with the account.

§owned_nfts: u64

The number of NFTs owned by this account

§max_automatic_token_associations: u32

The maximum number of tokens that an Account can be implicitly associated with.

§alias_key: Option<PublicKey>

The alias of this account.

§ethereum_nonce: u64

The ethereum transaction nonce associated with this account.

§ledger_id: LedgerId

The ledger ID the response was returned from.

§staking: Option<StakingInfo>

Staking metadata for this account.

Implementations§

source§

impl AccountInfo

source

pub fn from_bytes(bytes: &[u8]) -> Result<Self>

Create a new AccountInfo from protobuf-encoded bytes.

§Errors
source

pub fn to_bytes(&self) -> Vec<u8>

Convert self to a protobuf-encoded Vec<u8>.

Trait Implementations§

source§

impl Clone for AccountInfo

source§

fn clone(&self) -> AccountInfo

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for AccountInfo

source§

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

Formats the value using the given formatter. 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> FromRef<T> for T
where T: Clone,

source§

fn from_ref(input: &T) -> T

Converts to this type from a reference to the input type.
source§

impl<T> Instrument for T

source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
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> IntoRequest<T> for T

source§

fn into_request(self) -> Request<T>

Wrap the input message T in a tonic::Request
source§

impl<T> Same for T

§

type Output = T

Should always be Self
source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

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

§

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>,

§

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<V, T> VZip<V> for T
where V: MultiLane<T>,

source§

fn vzip(self) -> V

source§

impl<T> WithSubscriber for T

source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more