pub struct SignedTransaction {
pub transaction: Transaction,
pub signature: Signature,
/* private fields */
}Fields§
§transaction: Transaction§signature: SignatureImplementations§
source§impl SignedTransaction
impl SignedTransaction
pub fn from_actions( nonce: u64, signer_id: AccountId, receiver_id: AccountId, signer: &dyn Signer, actions: Vec<Action, Global>, block_hash: CryptoHash ) -> SignedTransaction
pub fn send_money( nonce: u64, signer_id: AccountId, receiver_id: AccountId, signer: &dyn Signer, deposit: u128, block_hash: CryptoHash ) -> SignedTransaction
pub fn stake( nonce: u64, signer_id: AccountId, signer: &dyn Signer, stake: u128, public_key: PublicKey, block_hash: CryptoHash ) -> SignedTransaction
pub fn create_account( nonce: u64, originator: AccountId, new_account_id: AccountId, amount: u128, public_key: PublicKey, signer: &dyn Signer, block_hash: CryptoHash ) -> SignedTransaction
pub fn create_contract( nonce: u64, originator: AccountId, new_account_id: AccountId, code: Vec<u8, Global>, amount: u128, public_key: PublicKey, signer: &dyn Signer, block_hash: CryptoHash ) -> SignedTransaction
pub fn call( nonce: u64, signer_id: AccountId, receiver_id: AccountId, signer: &dyn Signer, deposit: u128, method_name: String, args: Vec<u8, Global>, gas: u64, block_hash: CryptoHash ) -> SignedTransaction
pub fn delete_account( nonce: u64, signer_id: AccountId, receiver_id: AccountId, beneficiary_id: AccountId, signer: &dyn Signer, block_hash: CryptoHash ) -> SignedTransaction
pub fn empty(block_hash: CryptoHash) -> SignedTransaction
Trait Implementations§
source§impl Borrow<CryptoHash> for SignedTransaction
impl Borrow<CryptoHash> for SignedTransaction
source§impl BorshDeserialize for SignedTransactionwhere
Transaction: BorshDeserialize,
Signature: BorshDeserialize,
impl BorshDeserialize for SignedTransactionwhere Transaction: BorshDeserialize, Signature: BorshDeserialize,
fn deserialize_reader<R>(reader: &mut R) -> Result<SignedTransaction, Error>where R: Read,
source§fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
fn deserialize(buf: &mut &[u8]) -> Result<Self, Error>
Deserializes this instance from a given slice of bytes.
Updates the buffer to point at the remaining bytes.
source§fn try_from_slice(v: &[u8]) -> Result<Self, Error>
fn try_from_slice(v: &[u8]) -> Result<Self, Error>
Deserialize this instance from a slice of bytes.
fn try_from_reader<R>(reader: &mut R) -> Result<Self, Error>where R: Read,
source§impl BorshSerialize for SignedTransactionwhere
Transaction: BorshSerialize,
Signature: BorshSerialize,
impl BorshSerialize for SignedTransactionwhere Transaction: BorshSerialize, Signature: BorshSerialize,
source§impl Clone for SignedTransaction
impl Clone for SignedTransaction
source§fn clone(&self) -> SignedTransaction
fn clone(&self) -> SignedTransaction
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 SignedTransaction
impl Debug for SignedTransaction
source§impl<'de> Deserialize<'de> for SignedTransaction
impl<'de> Deserialize<'de> for SignedTransaction
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<SignedTransaction, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>( __deserializer: __D ) -> Result<SignedTransaction, <__D as Deserializer<'de>>::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl Hash for SignedTransaction
impl Hash for SignedTransaction
source§impl PartialEq<SignedTransaction> for SignedTransaction
impl PartialEq<SignedTransaction> for SignedTransaction
source§fn eq(&self, other: &SignedTransaction) -> bool
fn eq(&self, other: &SignedTransaction) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl Serialize for SignedTransaction
impl Serialize for SignedTransaction
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>( &self, __serializer: __S ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where __S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl Eq for SignedTransaction
impl StructuralEq for SignedTransaction
Auto Trait Implementations§
impl RefUnwindSafe for SignedTransaction
impl Send for SignedTransaction
impl Sync for SignedTransaction
impl Unpin for SignedTransaction
impl UnwindSafe for SignedTransaction
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<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::Request