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§
sourcetype Dependencies: RegisterWitTypes
type Dependencies: RegisterWitTypes
The WitType
s that this interface uses.
Required Methods§
sourcefn wit_package() -> &'static str
fn wit_package() -> &'static str
The name of the package the interface belongs to.
sourcefn wit_functions() -> Vec<String>
fn wit_functions() -> Vec<String>
The WIT definitions of each function in this interface.
Object Safety§
This trait is not object safe.