pub struct Tx {
pub base_tx: Tx,
pub source_chain_id: Id,
pub source_chain_transferable_inputs: Option<Vec<Input>>,
pub fx_creds: Vec<Credential>,
}
Expand description
Fields§
§base_tx: Tx
The transaction ID is empty for unsigned tx as long as “avax.BaseTx.Metadata” is “None”. Once Metadata is updated with signing and “Tx.Initialize”, Tx.ID() is non-empty.
source_chain_id: Id
§source_chain_transferable_inputs: Option<Vec<Input>>
§fx_creds: Vec<Credential>
Implementations§
source§impl Tx
impl Tx
pub fn default() -> Self
pub fn new(base_tx: Tx) -> Self
sourcepub fn tx_id(&self) -> Id
pub fn tx_id(&self) -> Id
Returns the transaction ID. Only non-empty if the embedded metadata is updated with the signing process.
pub fn type_name() -> String
pub fn type_id() -> u32
Trait Implementations§
source§impl<'de> Deserialize<'de> for Tx
impl<'de> Deserialize<'de> for Tx
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
impl Eq for Tx
impl StructuralEq for Tx
impl StructuralPartialEq for Tx
Auto Trait Implementations§
impl RefUnwindSafe for Tx
impl Send for Tx
impl Sync for Tx
impl Unpin for Tx
impl UnwindSafe for Tx
Blanket Implementations§
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.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