Namespace org.wasmcloud.model

CapabilityContractId(string)

Capability contract id, e.g. 'wasmcloud:httpserver'

Traits

nonEmptyString [object]

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

Traits

synonym [object]

I16(short)

signed 16-bit int

Traits

synonym [object]

I32(integer)

signed 32-bit int

Traits

synonym [object]

I64(long)

signed 64-bit int

Traits

synonym [object]

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

Traits

unsignedInt [object]

U16(short)

unsigned 16-bit int

Traits

unsignedInt [object]

U32(integer)

unsigned 32-bit int

Traits

unsignedInt [object]

U64(long)

unsigned 64-bit int

Traits

unsignedInt [object]

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