pub struct BatchMessageResponse {
pub batch_id: String,
pub status: BatchStatus,
pub total: i32,
pub queued: i32,
pub sent: i32,
pub failed: i32,
pub credits_used: i32,
pub messages: Vec<BatchMessageResult>,
pub created_at: Option<String>,
pub completed_at: Option<String>,
}Expand description
Response from sending batch messages.
Fields§
§batch_id: StringUnique batch identifier.
status: BatchStatusBatch status.
total: i32Total messages in batch.
queued: i32Messages queued.
sent: i32Messages sent.
failed: i32Messages failed.
credits_used: i32Total credits used.
messages: Vec<BatchMessageResult>Results for each message.
created_at: Option<String>Creation timestamp.
completed_at: Option<String>Completion timestamp.
Implementations§
Source§impl BatchMessageResponse
impl BatchMessageResponse
Sourcepub fn is_processing(&self) -> bool
pub fn is_processing(&self) -> bool
Returns true if the batch is still processing.
Sourcepub fn is_completed(&self) -> bool
pub fn is_completed(&self) -> bool
Returns true if the batch completed.
Trait Implementations§
Source§impl Clone for BatchMessageResponse
impl Clone for BatchMessageResponse
Source§fn clone(&self) -> BatchMessageResponse
fn clone(&self) -> BatchMessageResponse
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 BatchMessageResponse
impl Debug for BatchMessageResponse
Source§impl<'de> Deserialize<'de> for BatchMessageResponse
impl<'de> Deserialize<'de> for BatchMessageResponse
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for BatchMessageResponse
impl RefUnwindSafe for BatchMessageResponse
impl Send for BatchMessageResponse
impl Sync for BatchMessageResponse
impl Unpin for BatchMessageResponse
impl UnwindSafe for BatchMessageResponse
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