pub struct Transfer {
pub from: Option<<<ILOCKmvp as ContractEnv>::Env as Environment>::AccountId>,
pub to: Option<<<ILOCKmvp as ContractEnv>::Env as Environment>::AccountId>,
pub amount: <<ILOCKmvp as ContractEnv>::Env as Environment>::Balance,
}
Expand description
- Specify transfer event.
Fields§
§from: Option<<<ILOCKmvp as ContractEnv>::Env as Environment>::AccountId>
§to: Option<<<ILOCKmvp as ContractEnv>::Env as Environment>::AccountId>
§amount: <<ILOCKmvp as ContractEnv>::Env as Environment>::Balance
Trait Implementations§
source§impl Decode for Transfer
impl Decode for Transfer
source§fn decode<__CodecInputEdqy: Input>(
__codec_input_edqy: &mut __CodecInputEdqy
) -> Result<Self, Error>
fn decode<__CodecInputEdqy: Input>( __codec_input_edqy: &mut __CodecInputEdqy ) -> Result<Self, Error>
Attempt to deserialise the value from input.
§fn skip<I>(input: &mut I) -> Result<(), Error>where
I: Input,
fn skip<I>(input: &mut I) -> Result<(), Error>where I: Input,
Attempt to skip the encoded value from input. Read more
§fn encoded_fixed_size() -> Option<usize>
fn encoded_fixed_size() -> Option<usize>
Returns the fixed encoded size of the type. Read more
source§impl Encode for Transfer
impl Encode for Transfer
source§fn encode_to<__CodecOutputEdqy: Output + ?Sized>(
&self,
__codec_dest_edqy: &mut __CodecOutputEdqy
)
fn encode_to<__CodecOutputEdqy: Output + ?Sized>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )
Convert self to a slice and append it to the destination.
§fn using_encoded<R, F>(&self, f: F) -> Rwhere
F: FnOnce(&[u8]) -> R,
fn using_encoded<R, F>(&self, f: F) -> Rwhere F: FnOnce(&[u8]) -> R,
Convert self to a slice and then invoke the given closure with it.
§fn encoded_size(&self) -> usize
fn encoded_size(&self) -> usize
Calculates the encoded size. Read more
source§impl From<Transfer> for __ink_EventBase
impl From<Transfer> for __ink_EventBase
source§impl Topics for Transfer
impl Topics for Transfer
§type RemainingTopics = [HasRemainingTopics; 3]
type RemainingTopics = [HasRemainingTopics; 3]
Type state indicating how many event topics are to be expected by the topics builder.
impl EncodeLike<Transfer> for Transfer
Auto Trait Implementations§
impl RefUnwindSafe for Transfer
impl Send for Transfer
impl Sync for Transfer
impl Unpin for Transfer
impl UnwindSafe for Transfer
Blanket Implementations§
§impl<T> DecodeAll for Twhere
T: Decode,
impl<T> DecodeAll for Twhere T: Decode,
§fn decode_all(input: &mut &[u8]) -> Result<T, Error>
fn decode_all(input: &mut &[u8]) -> Result<T, Error>
Decode
Self
and consume all of the given input data. Read more§impl<T> DecodeLimit for Twhere
T: Decode,
impl<T> DecodeLimit for Twhere T: Decode,
§impl<T> Flush for Twhere
T: Storable + StorageKey,
impl<T> Flush for Twhere T: Storable + StorageKey,
§impl<T> KeyedVec for Twhere
T: Codec,
impl<T> KeyedVec for Twhere T: Codec,
§impl<P> Storable for Pwhere
P: Codec,
impl<P> Storable for Pwhere P: Codec,
§impl<P, Key> StorableHint<Key> for Pwhere
P: Packed,
Key: StorageKey,
impl<P, Key> StorableHint<Key> for Pwhere P: Packed, Key: StorageKey,
§type PreferredKey = AutoKey
type PreferredKey = AutoKey
The storage key that the type prefers. It can be overwritten by an auto-generated storage key.