Struct ilockmvp::ilockmvp::Transfer

source ·
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

source§

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,

Attempt to skip the encoded value from input. Read more
§

fn encoded_fixed_size() -> Option<usize>

Returns the fixed encoded size of the type. Read more
source§

impl Encode for Transfer

source§

fn encode_to<__CodecOutputEdqy: Output + ?Sized>( &self, __codec_dest_edqy: &mut __CodecOutputEdqy )

Convert self to a slice and append it to the destination.
§

fn size_hint(&self) -> usize

If possible give a hint of expected size of the encoding. Read more
§

fn encode(&self) -> Vec<u8, Global>

Convert self to an owned vector.
§

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

Calculates the encoded size. Read more
source§

impl EventLenTopics for Transfer

§

type LenTopics = EventTopics<2>

Type denoting the number of event topics. Read more
source§

impl From<Transfer> for __ink_EventBase

source§

fn from(event: Transfer) -> Self

Converts to this type from the input type.
source§

impl Topics for Transfer

§

type RemainingTopics = [HasRemainingTopics; 3]

Type state indicating how many event topics are to be expected by the topics builder.
source§

fn topics<E, B>( &self, builder: TopicsBuilder<Uninit, E, B> ) -> <B as TopicsBuilderBackend<E>>::Outputwhere E: Environment, B: TopicsBuilderBackend<E>,

Guides event topic serialization using the given topics builder.
source§

impl EncodeLike<Transfer> for Transfer

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> DecodeAll for Twhere T: Decode,

§

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,

§

fn decode_all_with_depth_limit( limit: u32, input: &mut &[u8] ) -> Result<T, Error>

Decode Self and consume all of the given input data. Read more
§

fn decode_with_depth_limit<I>(limit: u32, input: &mut I) -> Result<T, Error>where I: Input,

Decode Self with the given maximum recursion depth and advance input by the number of bytes consumed. Read more
§

impl<T> DefaultEnv for T

§

fn env() -> EnvAccess<'static, DefaultEnvironment>

§

impl<T> Flush for Twhere T: Storable + StorageKey,

§

fn flush(&self)

Method flushes the current state of Self into storage. ink! recursively calculate a key of each field. So if you want to flush the correct state of the contract, you have to this method on storage struct.
§

fn load(&mut self)

Method loads the current state of Self from storage. ink! recursively calculate a key of each field. So if you want to load the correct state of the contract, you have to this method on storage struct.
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

§

impl<T> KeyedVec for Twhere T: Codec,

§

fn to_keyed_vec(&self, prepend_key: &[u8]) -> Vec<u8, Global>

Return an encoding of Self prepended by given slice.
source§

impl<T> Same<T> for T

§

type Output = T

Should always be Self
§

impl<P> Storable for Pwhere P: Codec,

§

fn encode<T>(&self, dest: &mut T)where T: Output + ?Sized,

Convert self to a slice and append it to the destination.
§

fn decode<I>(input: &mut I) -> Result<P, Error>where I: Input,

Attempt to deserialize the value from input.
§

impl<P, Key> StorableHint<Key> for Pwhere P: Packed, Key: StorageKey,

§

type Type = P

Storable type with storage key inside.
§

type PreferredKey = AutoKey

The storage key that the type prefers. It can be overwritten by an auto-generated storage key.
§

impl<T> StorageAsMut for Twhere T: StorageAsRef,

§

fn data<Data>(&mut self) -> &mut Datawhere Data: OccupyStorage, Self: Storage<Data>,

§

impl<T> StorageAsRef for T

§

fn data<Data>(&self) -> &Datawhere Data: OccupyStorage, Self: Storage<Data>,

§

impl<P> StorageKey for Pwhere P: Packed,

§

const KEY: u32 = 0u32

Storage key of the type.
§

fn key(&self) -> u32

Returns the storage key.
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
§

impl<S> Codec for Swhere S: Decode + Encode,

§

impl<T> EncodeLike<&&T> for Twhere T: Encode,

§

impl<T> EncodeLike<&T> for Twhere T: Encode,

§

impl<T> EncodeLike<&mut T> for Twhere T: Encode,

§

impl<T> EncodeLike<Arc<T>> for Twhere T: Encode,

§

impl<T> EncodeLike<Box<T, Global>> for Twhere T: Encode,

§

impl<T> EncodeLike<Rc<T>> for Twhere T: Encode,

§

impl<S> FullCodec for Swhere S: Decode + FullEncode,

§

impl<S> FullEncode for Swhere S: Encode + EncodeLike<S>,

§

impl<T> JsonSchemaMaybe for T

§

impl<P> Packed for Pwhere P: Decode + Encode,