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 code_metadata: 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>
§code_metadata: 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, A>(
self,
token_id_expr: K,
nonce_expr: N,
balance_expr: V,
opt_attributes_expr: Option<T>,
royalties_expr: N,
creator_expr: Option<A>,
hash_expr: Option<T>,
uris_expr: Vec<T>,
) -> Accountwhere
BytesKey: From<K>,
U64Value: From<N>,
BigUintValue: From<V>,
BytesValue: From<T>,
AddressValue: From<A>,
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§
Source§impl InterpretableFrom<AccountRaw> for Account
impl InterpretableFrom<AccountRaw> for Account
fn interpret_from(from: AccountRaw, context: &InterpreterContext) -> Account
Source§impl IntoRaw<AccountRaw> for Account
impl IntoRaw<AccountRaw> for Account
fn into_raw(self) -> AccountRaw
Auto Trait Implementations§
impl Freeze 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> InterpretableFrom<&T> for Twhere
T: Clone,
impl<T> InterpretableFrom<&T> for Twhere
T: Clone,
fn interpret_from(from: &T, _context: &InterpreterContext) -> T
Source§impl<T> InterpretableFrom<T> for T
impl<T> InterpretableFrom<T> for T
fn interpret_from(from: T, _context: &InterpreterContext) -> T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more