[−][src]Struct hycon_rust::common::signed_tx::SignedTx
Fields
from: Addressto: Addressamount: u64fee: u64nonce: u32signature: RecoverableSignaturerecovery: RecoveryIdMethods
impl SignedTx[src]
pub fn new(
from: Address,
to: Address,
amount: u64,
fee: u64,
nonce: u32,
signature: RecoverableSignature,
recovery: RecoveryId
) -> SignedTx[src]
from: Address,
to: Address,
amount: u64,
fee: u64,
nonce: u32,
signature: RecoverableSignature,
recovery: RecoveryId
) -> SignedTx
pub fn from_tx(
tx: &Tx,
signature: RecoverableSignature,
recovery: RecoveryId
) -> SignedTx[src]
tx: &Tx,
signature: RecoverableSignature,
recovery: RecoveryId
) -> SignedTx
Trait Implementations
impl Transaction<[u8; 20], RecoverableSignature, RecoveryId> for SignedTx[src]
fn get_from(&self) -> Option<Address>[src]
fn get_to(&self) -> Option<Address>[src]
fn get_amount(&self) -> u64[src]
fn get_fee(&self) -> Option<u64>[src]
fn get_nonce(&self) -> Option<u32>[src]
fn get_signature(&self) -> Option<RecoverableSignature>[src]
fn get_recovery(&self) -> Option<RecoveryId>[src]
impl VerifiableTransaction for SignedTx[src]
impl Encode for SignedTx[src]
impl Decode for SignedTx[src]
impl Proto for SignedTx[src]
type ProtoType = ProtoSignedTx
fn to_proto(&self) -> Result<ProtoSignedTx, Box<dyn Error>>[src]
fn from_proto(_prototype: &Self::ProtoType) -> Result<Self, Box<dyn Error>>[src]
impl Clone for SignedTx[src]
fn clone(&self) -> SignedTx[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
Performs copy-assignment from source. Read more
impl Ord for SignedTx[src]
fn cmp(&self, other: &SignedTx) -> Ordering[src]
fn max(self, other: Self) -> Self1.21.0[src]
Compares and returns the maximum of two values. Read more
fn min(self, other: Self) -> Self1.21.0[src]
Compares and returns the minimum of two values. Read more
fn clamp(self, min: Self, max: Self) -> Self[src]
clamp)Restrict a value to a certain interval. Read more
impl Eq for SignedTx[src]
impl PartialOrd<SignedTx> for SignedTx[src]
fn partial_cmp(&self, other: &SignedTx) -> Option<Ordering>[src]
#[must_use]
fn lt(&self, other: &Rhs) -> bool1.0.0[src]
This method tests less than (for self and other) and is used by the < operator. Read more
#[must_use]
fn le(&self, other: &Rhs) -> bool1.0.0[src]
This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
#[must_use]
fn gt(&self, other: &Rhs) -> bool1.0.0[src]
This method tests greater than (for self and other) and is used by the > operator. Read more
#[must_use]
fn ge(&self, other: &Rhs) -> bool1.0.0[src]
This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more
impl PartialEq<SignedTx> for SignedTx[src]
impl Debug for SignedTx[src]
Auto Trait Implementations
Blanket Implementations
impl<T> From for T[src]
impl<T, U> Into for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T> Borrow for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T, U> TryInto for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> SendSyncUnwindSafe for T where
T: Send + Sync + UnwindSafe + ?Sized,
T: Send + Sync + UnwindSafe + ?Sized,
impl<T> Erased for T
impl<T> Same for T
type Output = T
Should always be Self