pub struct Profile {
pub environment: EnvMap,
pub parties: HashMap<String, String>,
}Expand description
A named profile baked into a client: environment values and party addresses keyed by name.
Produced either by deconstructing a loaded Protocol inside
Tx3ClientBuilder::from_protocol or by parsing the per-profile JSON
blob a generated codegen client embeds (via serde_json::from_str —
Profile derives Deserialize).
Fields§
§environment: EnvMapEnvironment values applied to every transaction under this profile.
parties: HashMap<String, String>Party addresses applied to every transaction under this profile.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Profile
impl<'de> Deserialize<'de> for Profile
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 Profile
impl RefUnwindSafe for Profile
impl Send for Profile
impl Sync for Profile
impl Unpin for Profile
impl UnsafeUnpin for Profile
impl UnwindSafe for Profile
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