pub fn content(value: impl AsRef<str>) -> Result<(), MessageValidationError>
Expand description
Ensure a message’s content is correct.
§Errors
Returns an error of type ContentInvalid
if the message’s content is
invalid.
pub fn content(value: impl AsRef<str>) -> Result<(), MessageValidationError>
Ensure a message’s content is correct.
Returns an error of type ContentInvalid
if the message’s content is
invalid.