pub struct TiiFile {
pub tii: TiiInfo,
pub protocol: Protocol,
pub environment: Option<Value>,
pub parties: HashMap<String, Party>,
pub transactions: HashMap<String, Transaction>,
pub profiles: HashMap<String, Profile>,
pub components: Option<Components>,
}Expand description
Root structure for TII (Transaction Invocation Interface) JSON files.
This structure represents the complete contents of a TII file, which defines a TX3 protocol including its transactions, parties, profiles, and configuration.
Fields§
§tii: TiiInfoTII specification version information.
protocol: ProtocolProtocol metadata (name, version, description).
environment: Option<Value>Optional JSON schema for environment parameters.
parties: HashMap<String, Party>Map of party names to their definitions.
transactions: HashMap<String, Transaction>Map of transaction names to their definitions.
profiles: HashMap<String, Profile>Map of profile names to their environment configurations.
components: Option<Components>Optional reusable components (schemas, etc.).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TiiFile
impl<'de> Deserialize<'de> for TiiFile
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 TiiFile
impl RefUnwindSafe for TiiFile
impl Send for TiiFile
impl Sync for TiiFile
impl Unpin for TiiFile
impl UnsafeUnpin for TiiFile
impl UnwindSafe for TiiFile
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