pub struct TransactionAPI {
pub to: Address,
pub value: TokenAmount,
pub method: MethodNum,
pub params: RawBytes,
pub approved: Vec<Address>,
}Fields§
§to: Address§value: TokenAmount§method: MethodNum§params: RawBytes§approved: Vec<Address>Implementations§
Source§impl TransactionAPI
impl TransactionAPI
pub fn serialize<__S>(
__self: &Transaction,
__serializer: __S,
) -> Result<__S::Ok, __S::Error>where
__S: Serializer,
Source§impl<'de> TransactionAPI
impl<'de> TransactionAPI
pub fn deserialize<__D>(__deserializer: __D) -> Result<Transaction, __D::Error>where
__D: Deserializer<'de>,
Trait Implementations§
Source§impl Clone for TransactionAPI
impl Clone for TransactionAPI
Source§fn clone(&self) -> TransactionAPI
fn clone(&self) -> TransactionAPI
Returns a duplicate 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 TransactionAPI
impl Debug for TransactionAPI
Source§impl PartialEq for TransactionAPI
impl PartialEq for TransactionAPI
impl StructuralPartialEq for TransactionAPI
Auto Trait Implementations§
impl Freeze for TransactionAPI
impl RefUnwindSafe for TransactionAPI
impl Send for TransactionAPI
impl Sync for TransactionAPI
impl Unpin for TransactionAPI
impl UnwindSafe for TransactionAPI
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more