linera_witty::wit_generation

Trait WitInterface

Source
pub trait WitInterface {
    type Dependencies: RegisterWitTypes;

    // Required methods
    fn wit_package() -> &'static str;
    fn wit_name() -> &'static str;
    fn wit_functions() -> Vec<String>;
}
Expand description

Generates WIT snippets for an interface.

Required Associated Types§

Source

type Dependencies: RegisterWitTypes

The WitTypes that this interface uses.

Required Methods§

Source

fn wit_package() -> &'static str

The name of the package the interface belongs to.

Source

fn wit_name() -> &'static str

The name of the interface.

Source

fn wit_functions() -> Vec<String>

The WIT definitions of each function in this interface.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§