Struct novax_executor::Account
source · pub struct Account {
pub comment: Option<String>,
pub nonce: Option<U64Value>,
pub balance: Option<BigUintValue>,
pub esdt: BTreeMap<BytesKey, Esdt>,
pub username: Option<BytesValue>,
pub storage: BTreeMap<BytesKey, BytesValue>,
pub code: Option<BytesValue>,
pub owner: Option<AddressValue>,
pub developer_rewards: Option<BigUintValue>,
}Fields§
§comment: Option<String>§nonce: Option<U64Value>§balance: Option<BigUintValue>§esdt: BTreeMap<BytesKey, Esdt>§username: Option<BytesValue>§storage: BTreeMap<BytesKey, BytesValue>§code: Option<BytesValue>§owner: Option<AddressValue>§developer_rewards: Option<BigUintValue>Implementations§
source§impl Account
impl Account
pub fn new() -> Account
pub fn nonce<V>(self, nonce: V) -> Account
pub fn balance<V>(self, balance_expr: V) -> Accountwhere
BigUintValue: From<V>,
pub fn esdt_balance<K, V>(self, token_id_expr: K, balance_expr: V) -> Account
pub fn esdt_nft_balance<K, N, V, T>( self, token_id_expr: K, nonce_expr: N, balance_expr: V, opt_attributes_expr: Option<T> ) -> Account
pub fn esdt_nft_all_properties<K, N, V, T>( self, token_id_expr: K, nonce_expr: N, balance_expr: V, opt_attributes_expr: Option<T>, royalties_expr: N, creator_expr: Option<T>, hash_expr: Option<T>, uris_expr: Vec<T> ) -> Account
pub fn esdt_nft_last_nonce<K, N>( self, token_id_expr: K, last_nonce_expr: N ) -> Account
pub fn esdt_roles<K>(self, token_id_expr: K, roles: Vec<String>) -> Account
pub fn code<V>(self, code_expr: V) -> Accountwhere
BytesValue: From<V>,
pub fn owner<V>(self, owner_expr: V) -> Accountwhere
AddressValue: From<V>,
Trait Implementations§
Auto Trait Implementations§
impl CodecFromSelf for Account
impl RefUnwindSafe for Account
impl Send for Account
impl Sync for Account
impl Unpin for Account
impl UnwindSafe for Account
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