Skip to main content

hara_native/lang/protocol/
imatch.rs

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