Module names
Expand description
Definitions of name-related helpers and newtypes, primarily for the component model.
Structs§
- Component
Name - An import or export name in the component model which is backed by
T, which defaults toString. - Interface
Name - An interface name, stored as
a:b/c@1.2.3 - Kebab
Str - Represents a kebab string slice used in validation.
- Kebab
String - Represents an owned kebab string for validation.
- Plain
Name - A plain name, possibly with resource func annotations like
[constructor]or[method]and with accessor annotations like[get]or[set]. - Resource
Func - A resource name and its function, stored as
a.b.
Enums§
- Accessor
Kind - The type of accessor associated with a given func.
- Component
Name Kind - Created via
ComponentName::kindand classifies a name. - Resource
Func Kind - The type of a func associated with a resource type.
Functions§
- is_
canonical_ version - Returns whether
versionis a canonical version, such as the0.2in the canonical interface namea:b/c@0.2. - split_
canonical_ version - Splits the full
versioninto its canonical version and the remaining version suffix, as used by canonical interface names in the component model.