Enum ft_storage_io::FTStorageAction
source · pub enum FTStorageAction {
GetBalance(ActorId),
GetPermitId(ActorId),
IncrementPermitId {
transaction_hash: H256,
account: ActorId,
expected_permit_id: u128,
},
IncreaseBalance {
transaction_hash: H256,
account: ActorId,
amount: u128,
},
DecreaseBalance {
transaction_hash: H256,
msg_source: ActorId,
account: ActorId,
amount: u128,
},
Approve {
transaction_hash: H256,
msg_source: ActorId,
account: ActorId,
amount: u128,
},
Transfer {
transaction_hash: H256,
msg_source: ActorId,
sender: ActorId,
recipient: ActorId,
amount: u128,
},
}
Variants§
GetBalance(ActorId)
GetPermitId(ActorId)
IncrementPermitId
IncreaseBalance
DecreaseBalance
Approve
Transfer
Trait Implementations§
source§impl Clone for FTStorageAction
impl Clone for FTStorageAction
source§fn clone(&self) -> FTStorageAction
fn clone(&self) -> FTStorageAction
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for FTStorageAction
impl Debug for FTStorageAction
source§impl Decode for FTStorageAction
impl Decode for FTStorageAction
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 decode_into<I>(
input: &mut I,
dst: &mut MaybeUninit<Self>
) -> Result<DecodeFinished, Error>where
I: Input,
fn decode_into<I>( input: &mut I, dst: &mut MaybeUninit<Self> ) -> Result<DecodeFinished, Error>where I: Input,
Attempt to deserialize the value from input into a pre-allocated piece of memory. Read more
§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 FTStorageAction
impl Encode for FTStorageAction
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 TypeInfo for FTStorageAction
impl TypeInfo for FTStorageAction
impl Copy for FTStorageAction
impl EncodeLike<FTStorageAction> for FTStorageAction
Auto Trait Implementations§
impl RefUnwindSafe for FTStorageAction
impl Send for FTStorageAction
impl Sync for FTStorageAction
impl Unpin for FTStorageAction
impl UnwindSafe for FTStorageAction
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
§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