Skip to main content

hara_native/lang/protocol/
iwork.rs

1use hara_protocol_macros::hara_protocol;
2
3#[hara_protocol(
4    namespace = "std.protocol.iwork",
5    name = "IWork",
6    availability = "capability-gated",
7    capability = "native-runtime-protocols"
8)]
9pub trait IWork {
10    type Spec;
11
12    #[hara_method(value = "work-spec", arity = 1)]
13    fn work_spec(&self) -> Self::Spec;
14}