pub struct MockCep78TransferFilter { /* private fields */ }Implementations§
Source§impl MockCep78TransferFilter
impl MockCep78TransferFilter
pub fn set_return_value(&mut self, return_value: u8)
pub fn can_transfer(&self) -> u8
Trait Implementations§
Source§impl HasEntrypoints for MockCep78TransferFilter
impl HasEntrypoints for MockCep78TransferFilter
Source§fn entrypoints() -> Vec<Entrypoint>
fn entrypoints() -> Vec<Entrypoint>
Returns the list of contract’s entrypoints.
Source§impl HasEvents for MockCep78TransferFilter
impl HasEvents for MockCep78TransferFilter
Source§impl HasIdent for MockCep78TransferFilter
impl HasIdent for MockCep78TransferFilter
Source§impl Module for MockCep78TransferFilter
impl Module for MockCep78TransferFilter
Source§fn new(env: Rc<ContractEnv>) -> Self
fn new(env: Rc<ContractEnv>) -> Self
Creates a new instance of the module with the given contract environment.
Source§fn env(&self) -> Rc<ContractEnv>
fn env(&self) -> Rc<ContractEnv>
Returns the contract environment associated with the module.
Source§impl OdraContract for MockCep78TransferFilter
impl OdraContract for MockCep78TransferFilter
Source§type HostRef = MockCep78TransferFilterHostRef
type HostRef = MockCep78TransferFilterHostRef
The host reference type.
Source§type ContractRef = MockCep78TransferFilterContractRef
type ContractRef = MockCep78TransferFilterContractRef
The contract reference type.
Source§impl SchemaCustomTypes for MockCep78TransferFilter
impl SchemaCustomTypes for MockCep78TransferFilter
Source§fn schema_types() -> Vec<Option<CustomType>>
fn schema_types() -> Vec<Option<CustomType>>
Returns a vector of optional CustomTypes.
Source§impl SchemaEntrypoints for MockCep78TransferFilter
impl SchemaEntrypoints for MockCep78TransferFilter
Source§fn schema_entrypoints() -> Vec<Entrypoint>
fn schema_entrypoints() -> Vec<Entrypoint>
Returns a vector of Entrypoints.
Source§impl SchemaEvents for MockCep78TransferFilter
impl SchemaEvents for MockCep78TransferFilter
Source§fn custom_types() -> Vec<Option<CustomType>>
fn custom_types() -> Vec<Option<CustomType>>
Returns a vector of CustomTypes. Read more
Auto Trait Implementations§
impl Freeze for MockCep78TransferFilter
impl !RefUnwindSafe for MockCep78TransferFilter
impl !Send for MockCep78TransferFilter
impl !Sync for MockCep78TransferFilter
impl Unpin for MockCep78TransferFilter
impl !UnwindSafe for MockCep78TransferFilter
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<R> Deployer<R> for Rwhere
R: OdraContract,
impl<R> Deployer<R> for Rwhere
R: OdraContract,
Source§fn deploy(
env: &HostEnv,
init_args: <R as OdraContract>::InitArgs,
) -> <R as OdraContract>::HostRef
fn deploy( env: &HostEnv, init_args: <R as OdraContract>::InitArgs, ) -> <R as OdraContract>::HostRef
Deploys a contract with given init args. Read more
Source§fn try_deploy(
env: &HostEnv,
init_args: <R as OdraContract>::InitArgs,
) -> Result<<R as OdraContract>::HostRef, OdraError>
fn try_deploy( env: &HostEnv, init_args: <R as OdraContract>::InitArgs, ) -> Result<<R as OdraContract>::HostRef, OdraError>
Tries to deploy a contract with given init args. Read more
Source§fn deploy_with_cfg<T>(
env: &HostEnv,
init_args: <R as OdraContract>::InitArgs,
cfg: T,
) -> <R as OdraContract>::HostRefwhere
T: OdraConfig,
fn deploy_with_cfg<T>(
env: &HostEnv,
init_args: <R as OdraContract>::InitArgs,
cfg: T,
) -> <R as OdraContract>::HostRefwhere
T: OdraConfig,
Deploys a contract with given init args and configuration. Read more
Source§fn try_deploy_with_cfg<T>(
env: &HostEnv,
init_args: <R as OdraContract>::InitArgs,
cfg: T,
) -> Result<<R as OdraContract>::HostRef, OdraError>where
T: OdraConfig,
fn try_deploy_with_cfg<T>(
env: &HostEnv,
init_args: <R as OdraContract>::InitArgs,
cfg: T,
) -> Result<<R as OdraContract>::HostRef, OdraError>where
T: OdraConfig,
Tries to deploy a contract with given init args and configuration. Read more