Namespace org.wasmcloud.model
CapabilityContractId(string)
Capability contract id, e.g. 'wasmcloud:httpserver'
codegenRust(structure)
Rust codegen traits
| noDeriveDefault: | Boolean | |
| noDeriveEq: | Boolean |
extends(structure)
indicates that a trait or class extends one or more bases
| base: | IdentifierList |
I8(byte)
signed byte
I16(short)
signed 16-bit int
I32(integer)
signed 32-bit int
I64(long)
signed 64-bit int
IdentifierList(list)
list of identifiers
| member: | String |
n(short)
Field sequence number. A zero-based field number for each member of a structure, to enable deterministic cbor serialization and improve forward and backward compatibility. Although the values are not required to be sequential, gaps are filled with nulls during encoding and so will slightly increase the encoding size.
Traits
| range | [object] |
nonEmptyString(string)
A non-empty string (minimum length 1)
Traits
| length | [object] |
serialization(structure)
Overrides for serializer & deserializer
| name: | String |
synonym(structure)
This trait doesn't have any functional impact on codegen. It is simply to document that the defined type is a synonym, and to silence the default validator that prints a notice for synonyms with no traits.
U8(byte)
unsigned byte
U16(short)
unsigned 16-bit int
U32(integer)
unsigned 32-bit int
U64(long)
unsigned 64-bit int
unsignedInt(structure)
The unsignedInt trait indicates that one of the number types is unsigned
Traits
| range | [object] |
wasmbus(structure)
a protocol defines the semantics of how a client and server communicate.
| actorReceive: | Boolean | |
| contractId: | CapabilityContractId | |
| providerReceive: | Boolean |
Traits
| protocolDefinition | [object] |
wasmbusData(structure)
data sent via wasmbus This trait is required for all messages sent via wasmbus