Module wasmbus_rpc::model

source ·

Structs

  • Rust codegen traits
  • indicates that a trait or class extends one or more bases
  • list element of trait @rename. the item name in the target language see ‘@rename’
  • Overrides for serializer & deserializer
  • 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.
  • The unsignedInt trait indicates that one of the number types is unsigned
  • a protocol defines the semantics of how a client and server communicate.
  • data sent via wasmbus This trait is required for all messages sent via wasmbus

Constants

Type Aliases

  • Capability contract id, e.g. ‘wasmcloud:httpserver’ This declaration supports code generations and is not part of an actor or provider sdk
  • 32-bit float
  • 64-bit float aka double
  • signed byte
  • signed 16-bit int
  • signed 32-bit int
  • signed 64-bit int
  • list of identifiers This declaration supports code generations and is not part of an actor or provider sdk
  • 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.
  • A non-empty string (minimum length 1)
  • Rename item(s) in target language. Useful if the item name (operation, or field) conflicts with a keyword in the target language. example: @rename({lang:“python”,name:“delete”})
  • unsigned byte
  • unsigned 16-bit int
  • unsigned 32-bit int
  • unsigned 64-bit int