pub struct SendBatchRequest {
pub messages: Vec<BatchMessageItem>,
pub from: Option<String>,
pub message_type: Option<MessageType>,
pub metadata: Option<HashMap<String, Value>>,
}Expand description
Request to send batch messages.
Fields§
§messages: Vec<BatchMessageItem>Messages to send.
from: Option<String>Sender ID or phone number (optional, applies to all).
message_type: Option<MessageType>Message type: “marketing” (default, subject to quiet hours) or “transactional” (24/7).
metadata: Option<HashMap<String, Value>>Shared metadata for all messages in the batch (max 4KB).
Trait Implementations§
Source§impl Clone for SendBatchRequest
impl Clone for SendBatchRequest
Source§fn clone(&self) -> SendBatchRequest
fn clone(&self) -> SendBatchRequest
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SendBatchRequest
impl Debug for SendBatchRequest
Auto Trait Implementations§
impl Freeze for SendBatchRequest
impl RefUnwindSafe for SendBatchRequest
impl Send for SendBatchRequest
impl Sync for SendBatchRequest
impl Unpin for SendBatchRequest
impl UnsafeUnpin for SendBatchRequest
impl UnwindSafe for SendBatchRequest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more