pub struct InboundSmsWebhook {
pub message_id: Option<String>,
pub from: Option<String>,
pub to: Option<String>,
pub body: Option<String>,
pub timestamp: Option<i64>,
pub custom_string: Option<String>,
pub original_message_id: Option<String>,
pub original_body: Option<String>,
pub originator: Option<String>,
}Expand description
Body of an inbound SMS webhook (ClickSend POSTs this to your URL when a
number of yours receives a text). Decode with
crate::webhook::parse_inbound_sms.
Fields§
§message_id: Option<String>Message id.
from: Option<String>Sender (the texter).
to: Option<String>Your number that received the text.
body: Option<String>Message body.
timestamp: Option<i64>When ClickSend received it.
custom_string: Option<String>Your reference id (echoed from the original outbound).
original_message_id: Option<String>If this is a reply, the id of the message it’s replying to.
original_body: Option<String>Original outbound body.
originator: Option<String>Sender id of the original outbound.
Trait Implementations§
Source§impl Clone for InboundSmsWebhook
impl Clone for InboundSmsWebhook
Source§fn clone(&self) -> InboundSmsWebhook
fn clone(&self) -> InboundSmsWebhook
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 InboundSmsWebhook
impl Debug for InboundSmsWebhook
Source§impl Default for InboundSmsWebhook
impl Default for InboundSmsWebhook
Source§fn default() -> InboundSmsWebhook
fn default() -> InboundSmsWebhook
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for InboundSmsWebhook
impl<'de> Deserialize<'de> for InboundSmsWebhook
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 InboundSmsWebhook
impl RefUnwindSafe for InboundSmsWebhook
impl Send for InboundSmsWebhook
impl Sync for InboundSmsWebhook
impl Unpin for InboundSmsWebhook
impl UnsafeUnpin for InboundSmsWebhook
impl UnwindSafe for InboundSmsWebhook
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