pub struct Tx {
pub body: Body,
pub auth_info: AuthInfo,
pub signatures: Vec<SignatureBytes>,
}
Expand description
Tx
is the standard type used for broadcasting transactions.
Fields§
§body: Body
Processable content of the transaction
auth_info: AuthInfo
Authorization related content of the transaction, specifically signers, signer modes
and Fee
.
signatures: Vec<SignatureBytes>
List of signatures that matches the length and order of AuthInfo
’s signer_info
s to
allow connecting signature meta information like public key and signing mode by position.
Signatures are provided as raw bytes so as to support current and future signature types.
AuthInfo
should be introspected to determine the signature algorithm used.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Tx
impl RefUnwindSafe for Tx
impl Send for Tx
impl Sync for Tx
impl Unpin for Tx
impl UnwindSafe for Tx
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> 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