pub fn attachment(attachment: &Attachment) -> Result<(), MessageValidationError>
Expand description
Ensure an attachment is correct.
§Errors
Returns an error of type AttachmentDescriptionTooLarge
if
the attachments’s description is too large.
Returns an error of type AttachmentFilename
if the
filename is invalid.