pub struct Account {
pub handle: ObjectStubHandle,
}
Fields§
§handle: ObjectStubHandle
Implementations§
source§impl Account
impl Account
pub fn securify(&mut self) -> Bucket
pub fn lock_fee(&mut self, amount: Decimal)
pub fn lock_contingent_fee(&mut self, amount: Decimal)
pub fn deposit(&mut self, bucket: Bucket)
pub fn deposit_batch(&mut self, buckets: Vec<Bucket>)
pub fn withdraw( &mut self, resource_address: ResourceAddress, amount: Decimal ) -> Bucket
pub fn withdraw_non_fungibles( &mut self, resource_address: ResourceAddress, ids: Vec<NonFungibleLocalId> ) -> Bucket
pub fn burn(&mut self, resource_address: ResourceAddress, amount: Decimal)
pub fn burn_non_fungibles( &mut self, resource_address: ResourceAddress, ids: Vec<NonFungibleLocalId> )
pub fn lock_fee_and_withdraw( &mut self, amount_to_lock: Decimal, resource_address: ResourceAddress, amount: Decimal ) -> Bucket
pub fn lock_fee_and_withdraw_non_fungibles( &mut self, amount_to_lock: Decimal, resource_address: ResourceAddress, ids: Vec<NonFungibleLocalId> ) -> Bucket
pub fn create_proof_of_amount( &self, resource_address: ResourceAddress, amount: Decimal ) -> Proof
pub fn create_proof_of_non_fungibles( &self, resource_address: ResourceAddress, ids: Vec<NonFungibleLocalId> ) -> Proof
pub fn set_default_deposit_rule(&self, default: DefaultDepositRule)
pub fn set_resource_preference( &self, resource_address: ResourceAddress, resource_preference: ResourcePreference )
pub fn remove_resource_preference(&self, resource_address: ResourceAddress)
pub fn try_deposit_or_refund( &mut self, bucket: Bucket, authorized_depositor_badge: Option<ResourceOrNonFungible> ) -> Option<Bucket>
pub fn try_deposit_batch_or_refund( &mut self, buckets: Vec<Bucket>, authorized_depositor_badge: Option<ResourceOrNonFungible> ) -> Option<Vec<Bucket>>
pub fn try_deposit_or_abort( &mut self, bucket: Bucket, authorized_depositor_badge: Option<ResourceOrNonFungible> )
pub fn try_deposit_batch_or_abort( &mut self, buckets: Vec<Bucket>, authorized_depositor_badge: Option<ResourceOrNonFungible> )
Trait Implementations§
source§impl HasTypeInfo for Account
impl HasTypeInfo for Account
const PACKAGE_ADDRESS: Option<PackageAddress> = _
const BLUEPRINT_NAME: &'static str = "Account"
const OWNED_TYPE_NAME: &'static str = "OwnedAccount"
const GLOBAL_TYPE_NAME: &'static str = "GlobalAccount"
fn blueprint_id() -> BlueprintId
source§impl ObjectStub for Account
impl ObjectStub for Account
type AddressType = ComponentAddress
fn new(handle: ObjectStubHandle) -> Self
fn handle(&self) -> &ObjectStubHandle
fn call<A: ScryptoEncode, T: ScryptoDecode>(&self, method: &str, args: &A) -> T
fn call_ignore_rtn<A: ScryptoEncode>(&self, method: &str, args: &A)
fn call_raw<T: ScryptoDecode>(&self, method: &str, args: Vec<u8>) -> T
fn instance_of(&self, blueprint_id: &BlueprintId) -> bool
fn blueprint_id(&self) -> BlueprintId
source§impl PartialEq for Account
impl PartialEq for Account
impl Copy for Account
impl Eq for Account
impl StructuralPartialEq for Account
Auto Trait Implementations§
impl RefUnwindSafe for Account
impl Send for Account
impl Sync for Account
impl Unpin for Account
impl UnwindSafe for Account
Blanket Implementations§
§impl<U> As for U
impl<U> As for U
§fn as_<T>(self) -> Twhere
T: CastFrom<U>,
fn as_<T>(self) -> Twhere
T: CastFrom<U>,
Casts
self
to type T
. The semantics of numeric casting with the as
operator are followed, so <T as As>::as_::<U>
can be used in the same way as T as U
for numeric conversions. Read moresource§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.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more