pub struct IntroductionDto {
pub id: Option<Id>,
pub participants: Vec<Participant>,
pub initial_state: Value,
pub sinks: Vec<SinkDto>,
pub subscriptions: Vec<Topic>,
pub desc: Description,
pub package: WasmPkg,
}Expand description
Digital-Tranfer-Object (Dto) of an Introduction
When new contracts or agents are created via web-api, things like Metadata do not make sense yet.
This DTO omits the metadata and makes the Id optional, so a new Id can be generated for the package.
Fields§
§id: Option<Id>Optional Contract- or Agent-ID
If this field is empty, a new ID will be generated for the contract or agent.
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<SinkDto>List of available sinks
subscriptions: Vec<Topic>List of available topics
desc: DescriptionHigh-Level description of the contract or agent
package: WasmPkgDefinition of the wasm package for this contract or agent
Trait Implementations§
Source§impl Clone for IntroductionDto
impl Clone for IntroductionDto
Source§fn clone(&self) -> IntroductionDto
fn clone(&self) -> IntroductionDto
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 IntroductionDto
impl Debug for IntroductionDto
Source§impl<'de> Deserialize<'de> for IntroductionDto
impl<'de> Deserialize<'de> for IntroductionDto
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 IntroductionDto
impl FromStr for IntroductionDto
Source§impl Serialize for IntroductionDto
impl Serialize for IntroductionDto
Source§impl TryFrom<IntroductionDto> for Introduction
impl TryFrom<IntroductionDto> for Introduction
Auto Trait Implementations§
impl Freeze for IntroductionDto
impl RefUnwindSafe for IntroductionDto
impl Send for IntroductionDto
impl Sync for IntroductionDto
impl Unpin for IntroductionDto
impl UnsafeUnpin for IntroductionDto
impl UnwindSafe for IntroductionDto
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