Creating a client
Building a message
UseMessage::builder() to compose a message. All methods take impl Into<String> or iterables:
.build() validates required fields and returns Err(PauboxError::Validation(...)) if any are missing.
Attachments
Thefrom_bytes constructor base64-encodes the data automatically; no manual encoding needed:
Send a message
SendResponse fields:
Check delivery status
MessageDelivery fields:
Health check
Ok(()) if the API is reachable, or a PauboxError if not.
Error handling
All methods returnResult<T, PauboxError>. Match on the variants to handle specific conditions:
PauboxError variants: