Trait linera_witty::wit_generation::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.

Object Safety§

This trait is not object safe.

Implementors§