Macro actyx_sdk::tags[][src]

macro_rules! tags {
    () => { ... };
    ($($expr:expr),*) => { ... };
    ($($x:tt)*) => { ... };
}
Expand description

Macro for constructing a set of Tag values.

The values accepted are either

  • non-empty string literals
  • normal expressions (enclosed in parens if multiple tokens)
use actyx_sdk::{semantics, tag, Tag, tags, TagSet};
use std::collections::BTreeSet;

let tags: TagSet = tags!("a", "semantics:b");
let mut expected = BTreeSet::new();
expected.insert(tag!("a"));
expected.insert(tag!("semantics:b"));
assert_eq!(tags, TagSet::from(expected));