Struct odra_modules::cep78::utils::MockTransferFilterContract
source · pub struct MockTransferFilterContract { /* private fields */ }Implementations§
source§impl MockTransferFilterContract
impl MockTransferFilterContract
pub fn set_return_value(&mut self, return_value: u8)
pub fn can_transfer(&self) -> u8
Trait Implementations§
source§impl HasEntrypoints for MockTransferFilterContract
impl HasEntrypoints for MockTransferFilterContract
source§fn entrypoints() -> Vec<Entrypoint>
fn entrypoints() -> Vec<Entrypoint>
Returns the list of contract’s entrypoints.
source§impl Module for MockTransferFilterContract
impl Module for MockTransferFilterContract
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 SchemaCustomTypes for MockTransferFilterContract
impl SchemaCustomTypes for MockTransferFilterContract
source§fn schema_types() -> Vec<Option<CustomType>>
fn schema_types() -> Vec<Option<CustomType>>
Returns a vector of optional CustomTypes.
source§impl SchemaEntrypoints for MockTransferFilterContract
impl SchemaEntrypoints for MockTransferFilterContract
source§fn schema_entrypoints() -> Vec<Entrypoint>
fn schema_entrypoints() -> Vec<Entrypoint>
Returns a vector of Entrypoints.
source§impl SchemaEvents for MockTransferFilterContract
impl SchemaEvents for MockTransferFilterContract
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 MockTransferFilterContract
impl !RefUnwindSafe for MockTransferFilterContract
impl !Send for MockTransferFilterContract
impl !Sync for MockTransferFilterContract
impl Unpin for MockTransferFilterContract
impl !UnwindSafe for MockTransferFilterContract
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