macro_rules! shape_id {
($ns:literal, $name:literal) => { ... };
($ns:literal, $name:literal, $member:literal) => { ... };
}Expand description
Creates a ShapeId from a namespace and shape name at compile time.
The fully qualified name (namespace#ShapeName) is computed via concat!,
eliminating the risk of the FQN getting out of sync with the parts.
ยงExamples
use aws_smithy_schema::{shape_id, ShapeId};
const ID: ShapeId = shape_id!("smithy.api", "String");
assert_eq!(ID.as_str(), "smithy.api#String");