pub struct ResolveParams {
pub args: ArgMap,
pub tir: TirEnvelope,
pub env: Option<EnvMap>,
}Expand description
Parameters for resolving a transaction template into a concrete transaction.
This structure contains all the information needed to resolve a TIR-encoded transaction template into a concrete UTxO transaction, including the template itself, arguments, and optional environment variables.
§Fields
tir- The Transaction Intermediate Representation envelope containing the templateargs- Arguments to populate the template parametersenv- Optional environment variables for resolution context
§Example
ⓘ
use tx3_sdk::trp::ResolveParams;
use tx3_sdk::core::TirEnvelope;
let params = ResolveParams {
tir: TirEnvelope {
content: "a10081825820...".to_string(),
encoding: tx3_sdk::core::TirEncoding::Hex,
version: "v1beta0".to_string(),
},
args: serde_json::Map::new(),
env: None,
};Fields§
§args: ArgMapArguments to populate the transaction template parameters.
tir: TirEnvelopeThe TIR envelope containing the transaction template.
env: Option<EnvMap>Optional environment variables for transaction resolution.
Trait Implementations§
Source§impl Clone for ResolveParams
impl Clone for ResolveParams
Source§fn clone(&self) -> ResolveParams
fn clone(&self) -> ResolveParams
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 Debug for ResolveParams
impl Debug for ResolveParams
Source§impl<'de> Deserialize<'de> for ResolveParams
impl<'de> Deserialize<'de> for ResolveParams
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
Auto Trait Implementations§
impl Freeze for ResolveParams
impl RefUnwindSafe for ResolveParams
impl Send for ResolveParams
impl Sync for ResolveParams
impl Unpin for ResolveParams
impl UnsafeUnpin for ResolveParams
impl UnwindSafe for ResolveParams
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