pub struct Introduction {
pub id: Id,
pub participants: Vec<Participant>,
pub initial_state: Value,
pub sinks: Vec<Sink>,
pub subscriptions: Vec<Topic>,
pub desc: Description,
pub meta: Metadata,
pub package: WasmPkg,
}Expand description
An introduction of either a contract or agent
There are no two distinct types, since the similarities between contracts and agents are quite big. The main difference is, that agents have no roles attached to them and are not introduced or revoked by a transaction.
Fields§
§id: IdContract- or Agent-ID
participants: Vec<Participant>List of participants
initial_state: ValueInitial state as JSON value
This will be parsed by the implementors of the contract or agent
sinks: Vec<Sink>List of available sinks (only relevant for contracts)
subscriptions: Vec<Topic>List of available subscriptions (only relevant for agents)
desc: DescriptionHigh-Level description of the contract or agent
meta: Metadatametadata of the contract or agent
package: WasmPkgDefinition of the wasm package for this contract or agent
Implementations§
Source§impl Introduction
impl Introduction
Trait Implementations§
Source§impl Clone for Introduction
impl Clone for Introduction
Source§fn clone(&self) -> Introduction
fn clone(&self) -> Introduction
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 Introduction
impl Debug for Introduction
Source§impl<'de> Deserialize<'de> for Introduction
impl<'de> Deserialize<'de> for Introduction
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
Source§impl FromStr for Introduction
impl FromStr for Introduction
Source§impl Serialize for Introduction
impl Serialize for Introduction
Source§impl TryFrom<IntroductionDto> for Introduction
impl TryFrom<IntroductionDto> for Introduction
Auto Trait Implementations§
impl Freeze for Introduction
impl RefUnwindSafe for Introduction
impl Send for Introduction
impl Sync for Introduction
impl Unpin for Introduction
impl UnwindSafe for Introduction
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