pub trait ScryptoVault {
    type BucketType;
    type ProofType;

Show 13 methods // Required methods fn with_bucket(bucket: Self::BucketType) -> Self; fn new(resource_address: ResourceAddress) -> Self; fn put(&mut self, bucket: Self::BucketType); fn amount(&self) -> Decimal; fn resource_address(&self) -> ResourceAddress; fn is_empty(&self) -> bool; fn take<A: Into<Decimal>>(&mut self, amount: A) -> Self::BucketType; fn take_all(&mut self) -> Self::BucketType; fn take_advanced<A: Into<Decimal>>( &mut self, amount: A, withdraw_strategy: WithdrawStrategy ) -> Self::BucketType; fn as_fungible(&self) -> FungibleVault; fn as_non_fungible(&self) -> NonFungibleVault; fn burn<A: Into<Decimal>>(&mut self, amount: A); // Provided method fn resource_manager(&self) -> ResourceManager { ... }
}

Required Associated Types§

Required Methods§

source

fn with_bucket(bucket: Self::BucketType) -> Self

source

fn new(resource_address: ResourceAddress) -> Self

source

fn put(&mut self, bucket: Self::BucketType)

source

fn amount(&self) -> Decimal

source

fn resource_address(&self) -> ResourceAddress

source

fn is_empty(&self) -> bool

source

fn take<A: Into<Decimal>>(&mut self, amount: A) -> Self::BucketType

source

fn take_all(&mut self) -> Self::BucketType

source

fn take_advanced<A: Into<Decimal>>( &mut self, amount: A, withdraw_strategy: WithdrawStrategy ) -> Self::BucketType

source

fn as_fungible(&self) -> FungibleVault

source

fn as_non_fungible(&self) -> NonFungibleVault

source

fn burn<A: Into<Decimal>>(&mut self, amount: A)

Provided Methods§

Object Safety§

This trait is not object safe.

Implementors§