pub struct TirEnvelope {
pub content: String,
pub encoding: TirEncoding,
pub version: String,
}Expand description
An envelope containing Transaction Intermediate Representation (TIR) data.
TIR is the intermediate format used by TX3 to represent transactions in a protocol-agnostic way before they are resolved to specific blockchain transactions. This envelope wraps the TIR content with metadata about its encoding and version.
§Fields
content- The encoded TIR dataencoding- The encoding format used (hex or base64)version- The TIR specification version (e.g., “v1beta0”)
§Example
ⓘ
use tx3_sdk::core::{TirEnvelope, TirEncoding};
let envelope = TirEnvelope {
content: "a10081825820...".to_string(),
encoding: TirEncoding::Hex,
version: "v1beta0".to_string(),
};Fields§
§content: StringThe encoded TIR content.
encoding: TirEncodingThe encoding format of the content.
version: StringThe TIR specification version.
Trait Implementations§
Source§impl Clone for TirEnvelope
impl Clone for TirEnvelope
Source§fn clone(&self) -> TirEnvelope
fn clone(&self) -> TirEnvelope
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 TirEnvelope
impl Debug for TirEnvelope
Source§impl<'de> Deserialize<'de> for TirEnvelope
impl<'de> Deserialize<'de> for TirEnvelope
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 TirEnvelope
impl RefUnwindSafe for TirEnvelope
impl Send for TirEnvelope
impl Sync for TirEnvelope
impl Unpin for TirEnvelope
impl UnsafeUnpin for TirEnvelope
impl UnwindSafe for TirEnvelope
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