Struct flow_sdk::transaction::TransactionE [−][src]
pub struct TransactionE<Script, Arguments, ReferenceBlockId, ProposalKeyAddress, Payer, Authorizers, PayloadSignatures, EnvelopeSignatures> {
pub script: Script,
pub arguments: Arguments,
pub reference_block_id: ReferenceBlockId,
pub gas_limit: u64,
pub proposal_key: ProposalKeyE<ProposalKeyAddress>,
pub payer: Payer,
pub authorizers: Authorizers,
pub payload_signatures: PayloadSignatures,
pub envelope_signatures: EnvelopeSignatures,
}
Expand description
A transaction represents a unit of computation that is submitted to the Flow network.
Use this type when sending it over the network.
Fields
script: Script
Raw source code for a Cadence script, encoded as UTF-8 bytes
arguments: Arguments
Arguments passed to the Cadence script, encoded as JSON-Cadence bytes
reference_block_id: ReferenceBlockId
Block ID used to determine transaction expiry
gas_limit: u64
The gas limit.
proposal_key: ProposalKeyE<ProposalKeyAddress>
Account key used to propose the transaction
payer: Payer
Address of the payer account
Addresses of the transaction authorizers
payload_signatures: PayloadSignatures
Signatures from all payload signer accounts
envelope_signatures: EnvelopeSignatures
Signatures from all envelope signer accounts
Trait Implementations
impl<Script: Clone, Arguments: Clone, ReferenceBlockId: Clone, ProposalKeyAddress: Clone, Payer: Clone, Authorizers: Clone, PayloadSignatures: Clone, EnvelopeSignatures: Clone> Clone for TransactionE<Script, Arguments, ReferenceBlockId, ProposalKeyAddress, Payer, Authorizers, PayloadSignatures, EnvelopeSignatures>
impl<Script: Clone, Arguments: Clone, ReferenceBlockId: Clone, ProposalKeyAddress: Clone, Payer: Clone, Authorizers: Clone, PayloadSignatures: Clone, EnvelopeSignatures: Clone> Clone for TransactionE<Script, Arguments, ReferenceBlockId, ProposalKeyAddress, Payer, Authorizers, PayloadSignatures, EnvelopeSignatures>
fn clone(
&self
) -> TransactionE<Script, Arguments, ReferenceBlockId, ProposalKeyAddress, Payer, Authorizers, PayloadSignatures, EnvelopeSignatures>
fn clone(
&self
) -> TransactionE<Script, Arguments, ReferenceBlockId, ProposalKeyAddress, Payer, Authorizers, PayloadSignatures, EnvelopeSignatures>
Returns a copy of the value. Read more
Performs copy-assignment from source
. Read more
impl<Script: AsRef<[u8]>, Arguments, ReferenceBlockId: AsRef<[u8]>, ProposalKeyAddress: AsRef<[u8]>, Payer: AsRef<[u8]>, Authorizers, PayloadSignatures, EnvelopeSignatures, PayloadSignatureAddress: AsRef<[u8]>, PayloadSignature: AsRef<[u8]>, EnvelopeSignatureAddress: AsRef<[u8]>, EnvelopeSignature: AsRef<[u8]>> Debug for TransactionE<Script, Arguments, ReferenceBlockId, ProposalKeyAddress, Payer, Authorizers, PayloadSignatures, EnvelopeSignatures> where
Arguments: HasItem,
<Arguments as HasItem>::Item: AsRef<[u8]>,
for<'a> &'a Arguments: IntoIterator<Item = &'a <Arguments as HasItem>::Item>,
Authorizers: HasItem,
<Authorizers as HasItem>::Item: AsRef<[u8]>,
for<'a> &'a Authorizers: IntoIterator<Item = &'a <Authorizers as HasItem>::Item>,
PayloadSignatures: HasItem<Item = SignatureE<PayloadSignatureAddress, PayloadSignature>>,
for<'a> &'a PayloadSignatures: IntoIterator<Item = &'a SignatureE<PayloadSignatureAddress, PayloadSignature>>,
EnvelopeSignatures: HasItem<Item = SignatureE<EnvelopeSignatureAddress, EnvelopeSignature>>,
for<'a> &'a EnvelopeSignatures: IntoIterator<Item = &'a SignatureE<EnvelopeSignatureAddress, EnvelopeSignature>>,
impl<Script: AsRef<[u8]>, Arguments, ReferenceBlockId: AsRef<[u8]>, ProposalKeyAddress: AsRef<[u8]>, Payer: AsRef<[u8]>, Authorizers, PayloadSignatures, EnvelopeSignatures, PayloadSignatureAddress: AsRef<[u8]>, PayloadSignature: AsRef<[u8]>, EnvelopeSignatureAddress: AsRef<[u8]>, EnvelopeSignature: AsRef<[u8]>> Debug for TransactionE<Script, Arguments, ReferenceBlockId, ProposalKeyAddress, Payer, Authorizers, PayloadSignatures, EnvelopeSignatures> where
Arguments: HasItem,
<Arguments as HasItem>::Item: AsRef<[u8]>,
for<'a> &'a Arguments: IntoIterator<Item = &'a <Arguments as HasItem>::Item>,
Authorizers: HasItem,
<Authorizers as HasItem>::Item: AsRef<[u8]>,
for<'a> &'a Authorizers: IntoIterator<Item = &'a <Authorizers as HasItem>::Item>,
PayloadSignatures: HasItem<Item = SignatureE<PayloadSignatureAddress, PayloadSignature>>,
for<'a> &'a PayloadSignatures: IntoIterator<Item = &'a SignatureE<PayloadSignatureAddress, PayloadSignature>>,
EnvelopeSignatures: HasItem<Item = SignatureE<EnvelopeSignatureAddress, EnvelopeSignature>>,
for<'a> &'a EnvelopeSignatures: IntoIterator<Item = &'a SignatureE<EnvelopeSignatureAddress, EnvelopeSignature>>,
impl<PayloadSignatureAddress, PayloadSignature, EnvelopeSignatureAddress, EnvelopeSignature, Script, Arguments, ReferenceBlockId, ProposalKeyAddress, Payer, Authorizers, PayloadSignatures, EnvelopeSignatures> Encodable for TransactionE<Script, Arguments, ReferenceBlockId, ProposalKeyAddress, Payer, Authorizers, PayloadSignatures, EnvelopeSignatures> where
Script: AsRef<[u8]>,
ReferenceBlockId: AsRef<[u8]>,
Payer: AsRef<[u8]>,
ProposalKeyAddress: AsRef<[u8]>,
PayloadSignatureAddress: AsRef<[u8]>,
PayloadSignature: AsRef<[u8]>,
EnvelopeSignatureAddress: AsRef<[u8]>,
EnvelopeSignature: AsRef<[u8]>,
Arguments: HasItem,
<Arguments as HasItem>::Item: AsRef<[u8]>,
for<'a> &'a Arguments: IntoIterator<Item = &'a <Arguments as HasItem>::Item>,
Authorizers: HasItem,
<Authorizers as HasItem>::Item: AsRef<[u8]>,
for<'a> &'a Authorizers: IntoIterator<Item = &'a <Authorizers as HasItem>::Item>,
PayloadSignatures: HasItem<Item = SignatureE<PayloadSignatureAddress, PayloadSignature>>,
for<'a> &'a PayloadSignatures: IntoIterator<Item = &'a SignatureE<PayloadSignatureAddress, PayloadSignature>>,
EnvelopeSignatures: HasItem<Item = SignatureE<EnvelopeSignatureAddress, EnvelopeSignature>>,
for<'a> &'a EnvelopeSignatures: IntoIterator<Item = &'a SignatureE<EnvelopeSignatureAddress, EnvelopeSignature>>,
impl<PayloadSignatureAddress, PayloadSignature, EnvelopeSignatureAddress, EnvelopeSignature, Script, Arguments, ReferenceBlockId, ProposalKeyAddress, Payer, Authorizers, PayloadSignatures, EnvelopeSignatures> Encodable for TransactionE<Script, Arguments, ReferenceBlockId, ProposalKeyAddress, Payer, Authorizers, PayloadSignatures, EnvelopeSignatures> where
Script: AsRef<[u8]>,
ReferenceBlockId: AsRef<[u8]>,
Payer: AsRef<[u8]>,
ProposalKeyAddress: AsRef<[u8]>,
PayloadSignatureAddress: AsRef<[u8]>,
PayloadSignature: AsRef<[u8]>,
EnvelopeSignatureAddress: AsRef<[u8]>,
EnvelopeSignature: AsRef<[u8]>,
Arguments: HasItem,
<Arguments as HasItem>::Item: AsRef<[u8]>,
for<'a> &'a Arguments: IntoIterator<Item = &'a <Arguments as HasItem>::Item>,
Authorizers: HasItem,
<Authorizers as HasItem>::Item: AsRef<[u8]>,
for<'a> &'a Authorizers: IntoIterator<Item = &'a <Authorizers as HasItem>::Item>,
PayloadSignatures: HasItem<Item = SignatureE<PayloadSignatureAddress, PayloadSignature>>,
for<'a> &'a PayloadSignatures: IntoIterator<Item = &'a SignatureE<PayloadSignatureAddress, PayloadSignature>>,
EnvelopeSignatures: HasItem<Item = SignatureE<EnvelopeSignatureAddress, EnvelopeSignature>>,
for<'a> &'a EnvelopeSignatures: IntoIterator<Item = &'a SignatureE<EnvelopeSignatureAddress, EnvelopeSignature>>,
type Wire = LengthDelimitedWire
returns the size in bytes when encoded, including the field number.
fn encode_field<V>(
&self,
s: &mut ProtobufSerializer<impl BufMut>,
field_number: V
) where
V: VarInt,
fn encode_field<V>(
&self,
s: &mut ProtobufSerializer<impl BufMut>,
field_number: V
) where
V: VarInt,
The entry point to encoding Encodable
s in a message. Read more
unsafe fn encode_field_precomputed(
&self,
s: &mut ProtobufSerializer<impl BufMut>,
field_number: &[u8]
)
unsafe fn encode_field_precomputed(
&self,
s: &mut ProtobufSerializer<impl BufMut>,
field_number: &[u8]
)
Encodes a field using precomputed bytes for the field number and the wire type varint. Read more
impl<PayloadSignatureAddress, PayloadSignature, EnvelopeSignatureAddress, EnvelopeSignature, Script, Arguments, ReferenceBlockId, ProposalKeyAddress, Payer, Authorizers, PayloadSignatures, EnvelopeSignatures> EncodableMessage for TransactionE<Script, Arguments, ReferenceBlockId, ProposalKeyAddress, Payer, Authorizers, PayloadSignatures, EnvelopeSignatures> where
Script: AsRef<[u8]>,
ReferenceBlockId: AsRef<[u8]>,
Payer: AsRef<[u8]>,
ProposalKeyAddress: AsRef<[u8]>,
PayloadSignatureAddress: AsRef<[u8]>,
PayloadSignature: AsRef<[u8]>,
EnvelopeSignatureAddress: AsRef<[u8]>,
EnvelopeSignature: AsRef<[u8]>,
Arguments: HasItem,
<Arguments as HasItem>::Item: AsRef<[u8]>,
for<'a> &'a Arguments: IntoIterator<Item = &'a <Arguments as HasItem>::Item>,
Authorizers: HasItem,
<Authorizers as HasItem>::Item: AsRef<[u8]>,
for<'a> &'a Authorizers: IntoIterator<Item = &'a <Authorizers as HasItem>::Item>,
PayloadSignatures: HasItem<Item = SignatureE<PayloadSignatureAddress, PayloadSignature>>,
for<'a> &'a PayloadSignatures: IntoIterator<Item = &'a SignatureE<PayloadSignatureAddress, PayloadSignature>>,
EnvelopeSignatures: HasItem<Item = SignatureE<EnvelopeSignatureAddress, EnvelopeSignature>>,
for<'a> &'a EnvelopeSignatures: IntoIterator<Item = &'a SignatureE<EnvelopeSignatureAddress, EnvelopeSignature>>,
impl<PayloadSignatureAddress, PayloadSignature, EnvelopeSignatureAddress, EnvelopeSignature, Script, Arguments, ReferenceBlockId, ProposalKeyAddress, Payer, Authorizers, PayloadSignatures, EnvelopeSignatures> EncodableMessage for TransactionE<Script, Arguments, ReferenceBlockId, ProposalKeyAddress, Payer, Authorizers, PayloadSignatures, EnvelopeSignatures> where
Script: AsRef<[u8]>,
ReferenceBlockId: AsRef<[u8]>,
Payer: AsRef<[u8]>,
ProposalKeyAddress: AsRef<[u8]>,
PayloadSignatureAddress: AsRef<[u8]>,
PayloadSignature: AsRef<[u8]>,
EnvelopeSignatureAddress: AsRef<[u8]>,
EnvelopeSignature: AsRef<[u8]>,
Arguments: HasItem,
<Arguments as HasItem>::Item: AsRef<[u8]>,
for<'a> &'a Arguments: IntoIterator<Item = &'a <Arguments as HasItem>::Item>,
Authorizers: HasItem,
<Authorizers as HasItem>::Item: AsRef<[u8]>,
for<'a> &'a Authorizers: IntoIterator<Item = &'a <Authorizers as HasItem>::Item>,
PayloadSignatures: HasItem<Item = SignatureE<PayloadSignatureAddress, PayloadSignature>>,
for<'a> &'a PayloadSignatures: IntoIterator<Item = &'a SignatureE<PayloadSignatureAddress, PayloadSignature>>,
EnvelopeSignatures: HasItem<Item = SignatureE<EnvelopeSignatureAddress, EnvelopeSignature>>,
for<'a> &'a EnvelopeSignatures: IntoIterator<Item = &'a SignatureE<EnvelopeSignatureAddress, EnvelopeSignature>>,
impl<Script: PartialEq, Arguments: PartialEq, ReferenceBlockId: PartialEq, ProposalKeyAddress: PartialEq, Payer: PartialEq, Authorizers: PartialEq, PayloadSignatures: PartialEq, EnvelopeSignatures: PartialEq> PartialEq<TransactionE<Script, Arguments, ReferenceBlockId, ProposalKeyAddress, Payer, Authorizers, PayloadSignatures, EnvelopeSignatures>> for TransactionE<Script, Arguments, ReferenceBlockId, ProposalKeyAddress, Payer, Authorizers, PayloadSignatures, EnvelopeSignatures>
impl<Script: PartialEq, Arguments: PartialEq, ReferenceBlockId: PartialEq, ProposalKeyAddress: PartialEq, Payer: PartialEq, Authorizers: PartialEq, PayloadSignatures: PartialEq, EnvelopeSignatures: PartialEq> PartialEq<TransactionE<Script, Arguments, ReferenceBlockId, ProposalKeyAddress, Payer, Authorizers, PayloadSignatures, EnvelopeSignatures>> for TransactionE<Script, Arguments, ReferenceBlockId, ProposalKeyAddress, Payer, Authorizers, PayloadSignatures, EnvelopeSignatures>
fn eq(
&self,
other: &TransactionE<Script, Arguments, ReferenceBlockId, ProposalKeyAddress, Payer, Authorizers, PayloadSignatures, EnvelopeSignatures>
) -> bool
fn eq(
&self,
other: &TransactionE<Script, Arguments, ReferenceBlockId, ProposalKeyAddress, Payer, Authorizers, PayloadSignatures, EnvelopeSignatures>
) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
fn ne(
&self,
other: &TransactionE<Script, Arguments, ReferenceBlockId, ProposalKeyAddress, Payer, Authorizers, PayloadSignatures, EnvelopeSignatures>
) -> bool
fn ne(
&self,
other: &TransactionE<Script, Arguments, ReferenceBlockId, ProposalKeyAddress, Payer, Authorizers, PayloadSignatures, EnvelopeSignatures>
) -> bool
This method tests for !=
.
impl<Script: Eq, Arguments: Eq, ReferenceBlockId: Eq, ProposalKeyAddress: Eq, Payer: Eq, Authorizers: Eq, PayloadSignatures: Eq, EnvelopeSignatures: Eq> Eq for TransactionE<Script, Arguments, ReferenceBlockId, ProposalKeyAddress, Payer, Authorizers, PayloadSignatures, EnvelopeSignatures>
impl<Script, Arguments, ReferenceBlockId, ProposalKeyAddress, Payer, Authorizers, PayloadSignatures, EnvelopeSignatures> StructuralEq for TransactionE<Script, Arguments, ReferenceBlockId, ProposalKeyAddress, Payer, Authorizers, PayloadSignatures, EnvelopeSignatures>
impl<Script, Arguments, ReferenceBlockId, ProposalKeyAddress, Payer, Authorizers, PayloadSignatures, EnvelopeSignatures> StructuralPartialEq for TransactionE<Script, Arguments, ReferenceBlockId, ProposalKeyAddress, Payer, Authorizers, PayloadSignatures, EnvelopeSignatures>
Auto Trait Implementations
impl<Script, Arguments, ReferenceBlockId, ProposalKeyAddress, Payer, Authorizers, PayloadSignatures, EnvelopeSignatures> RefUnwindSafe for TransactionE<Script, Arguments, ReferenceBlockId, ProposalKeyAddress, Payer, Authorizers, PayloadSignatures, EnvelopeSignatures> where
Arguments: RefUnwindSafe,
Authorizers: RefUnwindSafe,
EnvelopeSignatures: RefUnwindSafe,
Payer: RefUnwindSafe,
PayloadSignatures: RefUnwindSafe,
ProposalKeyAddress: RefUnwindSafe,
ReferenceBlockId: RefUnwindSafe,
Script: RefUnwindSafe,
impl<Script, Arguments, ReferenceBlockId, ProposalKeyAddress, Payer, Authorizers, PayloadSignatures, EnvelopeSignatures> Send for TransactionE<Script, Arguments, ReferenceBlockId, ProposalKeyAddress, Payer, Authorizers, PayloadSignatures, EnvelopeSignatures> where
Arguments: Send,
Authorizers: Send,
EnvelopeSignatures: Send,
Payer: Send,
PayloadSignatures: Send,
ProposalKeyAddress: Send,
ReferenceBlockId: Send,
Script: Send,
impl<Script, Arguments, ReferenceBlockId, ProposalKeyAddress, Payer, Authorizers, PayloadSignatures, EnvelopeSignatures> Sync for TransactionE<Script, Arguments, ReferenceBlockId, ProposalKeyAddress, Payer, Authorizers, PayloadSignatures, EnvelopeSignatures> where
Arguments: Sync,
Authorizers: Sync,
EnvelopeSignatures: Sync,
Payer: Sync,
PayloadSignatures: Sync,
ProposalKeyAddress: Sync,
ReferenceBlockId: Sync,
Script: Sync,
impl<Script, Arguments, ReferenceBlockId, ProposalKeyAddress, Payer, Authorizers, PayloadSignatures, EnvelopeSignatures> Unpin for TransactionE<Script, Arguments, ReferenceBlockId, ProposalKeyAddress, Payer, Authorizers, PayloadSignatures, EnvelopeSignatures> where
Arguments: Unpin,
Authorizers: Unpin,
EnvelopeSignatures: Unpin,
Payer: Unpin,
PayloadSignatures: Unpin,
ProposalKeyAddress: Unpin,
ReferenceBlockId: Unpin,
Script: Unpin,
impl<Script, Arguments, ReferenceBlockId, ProposalKeyAddress, Payer, Authorizers, PayloadSignatures, EnvelopeSignatures> UnwindSafe for TransactionE<Script, Arguments, ReferenceBlockId, ProposalKeyAddress, Payer, Authorizers, PayloadSignatures, EnvelopeSignatures> where
Arguments: UnwindSafe,
Authorizers: UnwindSafe,
EnvelopeSignatures: UnwindSafe,
Payer: UnwindSafe,
PayloadSignatures: UnwindSafe,
ProposalKeyAddress: UnwindSafe,
ReferenceBlockId: UnwindSafe,
Script: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.
Wrap the input message T
in a tonic::Request
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more