Skip to main content

Module names

Module names 

Expand description

Definitions of name-related helpers and newtypes, primarily for the component model.

Structs§

ComponentName
An import or export name in the component model which is backed by T, which defaults to String.
InterfaceName
An interface name, stored as a:b/c@1.2.3
KebabStr
Represents a kebab string slice used in validation.
KebabString
Represents an owned kebab string for validation.
PlainName
A plain name, possibly with resource func annotations like [constructor] or [method] and with accessor annotations like [get] or [set].
ResourceFunc
A resource name and its function, stored as a.b.

Enums§

AccessorKind
The type of accessor associated with a given func.
ComponentNameKind
Created via ComponentName::kind and classifies a name.
ResourceFuncKind
The type of a func associated with a resource type.

Functions§

is_canonical_version
Returns whether version is a canonical version, such as the 0.2 in the canonical interface name a:b/c@0.2.
split_canonical_version
Splits the full version into its canonical version and the remaining version suffix, as used by canonical interface names in the component model.