pub struct SignedTransaction<'a, T> {
pub prepared_transaction: PreparedTransaction<'a, T>,
pub txn_signature: Cow<'a, str>,
}
Fields§
§prepared_transaction: PreparedTransaction<'a, T>
§txn_signature: Cow<'a, str>
The signature that verifies this transaction as originating from the account it says it is from.
Implementations§
Source§impl<'a, T> SignedTransaction<'a, T>
impl<'a, T> SignedTransaction<'a, T>
Sourcepub fn new(
prepared_transaction: PreparedTransaction<'a, T>,
txn_signature: Cow<'a, str>,
) -> Self
pub fn new( prepared_transaction: PreparedTransaction<'a, T>, txn_signature: Cow<'a, str>, ) -> Self
Constructs a new SignedTransaction
.
Trait Implementations§
Source§impl<'a, T: Clone> Clone for SignedTransaction<'a, T>
impl<'a, T: Clone> Clone for SignedTransaction<'a, T>
Source§fn clone(&self) -> SignedTransaction<'a, T>
fn clone(&self) -> SignedTransaction<'a, T>
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<'a, T: Debug> Debug for SignedTransaction<'a, T>
impl<'a, T: Debug> Debug for SignedTransaction<'a, T>
Source§impl<'de, 'a, T> Deserialize<'de> for SignedTransaction<'a, T>where
T: Deserialize<'de>,
impl<'de, 'a, T> Deserialize<'de> for SignedTransaction<'a, T>where
T: Deserialize<'de>,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<'a, T: PartialEq> PartialEq for SignedTransaction<'a, T>
impl<'a, T: PartialEq> PartialEq for SignedTransaction<'a, T>
Source§impl<'a, T> Serialize for SignedTransaction<'a, T>where
T: Serialize,
impl<'a, T> Serialize for SignedTransaction<'a, T>where
T: Serialize,
impl<'a, T: Eq> Eq for SignedTransaction<'a, T>
impl<'a, T> StructuralPartialEq for SignedTransaction<'a, T>
Auto Trait Implementations§
impl<'a, T> Freeze for SignedTransaction<'a, T>where
T: Freeze,
impl<'a, T> RefUnwindSafe for SignedTransaction<'a, T>where
T: RefUnwindSafe,
impl<'a, T> Send for SignedTransaction<'a, T>where
T: Send,
impl<'a, T> Sync for SignedTransaction<'a, T>where
T: Sync,
impl<'a, T> Unpin for SignedTransaction<'a, T>where
T: Unpin,
impl<'a, T> UnwindSafe for SignedTransaction<'a, T>where
T: UnwindSafe,
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.