Enum cfx_vm_types::ActionValue
source · pub enum ActionValue {
Transfer(U256),
Apparent(U256),
}
Expand description
Transaction value
Variants§
Transfer(U256)
Value that should be transferred
Apparent(U256)
Apparent value for transaction (not transferred)
Implementations§
source§impl ActionValue
impl ActionValue
sourcepub fn transfer<T: Into<U256>>(transfer_value: T) -> ActionValue
pub fn transfer<T: Into<U256>>(transfer_value: T) -> ActionValue
Returns the transfer action value of the U256-convertable raw value
sourcepub fn apparent<T: Into<U256>>(apparent_value: T) -> ActionValue
pub fn apparent<T: Into<U256>>(apparent_value: T) -> ActionValue
Returns the apparent action value of the U256-convertable raw value
Trait Implementations§
source§impl Clone for ActionValue
impl Clone for ActionValue
source§fn clone(&self) -> ActionValue
fn clone(&self) -> ActionValue
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 moreAuto Trait Implementations§
impl Freeze for ActionValue
impl RefUnwindSafe for ActionValue
impl Send for ActionValue
impl Sync for ActionValue
impl Unpin for ActionValue
impl UnwindSafe for ActionValue
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