pub fn name(value: impl AsRef<str>) -> Result<(), ChannelValidationError>
Expand description
Ensure a channel’s name’s length is correct.
The length must be less than CHANNEL_NAME_LENGTH_MIN
and at most
CHANNEL_NAME_LENGTH_MAX
. This is based on this documentation entry.
§Errors
Returns an error of type NameInvalid
if the channel’s name’s length is
incorrect.