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