pub struct InboxWebhookMessage {
pub id: String,
pub conversation_id: String,
pub platform: Platform,
pub platform_message_id: String,
pub direction: Direction,
pub text: Option<String>,
pub attachments: Vec<InboxWebhookMessageAttachmentsInner>,
pub sender: Box<InboxWebhookMessageSender>,
pub sent_at: String,
pub is_read: bool,
}Expand description
InboxWebhookMessage : The message object included in inbox webhook payloads.
Fields§
§id: StringInternal message ID
conversation_id: StringInternal conversation ID
platform: Platform§platform_message_id: StringPlatform’s message ID
direction: Direction§text: Option<String>Message text content (retained on deleted messages for API consumers; Zernio dashboard UI hides this)
attachments: Vec<InboxWebhookMessageAttachmentsInner>§sender: Box<InboxWebhookMessageSender>§sent_at: String§is_read: boolImplementations§
Source§impl InboxWebhookMessage
impl InboxWebhookMessage
Sourcepub fn new(
id: String,
conversation_id: String,
platform: Platform,
platform_message_id: String,
direction: Direction,
text: Option<String>,
attachments: Vec<InboxWebhookMessageAttachmentsInner>,
sender: InboxWebhookMessageSender,
sent_at: String,
is_read: bool,
) -> InboxWebhookMessage
pub fn new( id: String, conversation_id: String, platform: Platform, platform_message_id: String, direction: Direction, text: Option<String>, attachments: Vec<InboxWebhookMessageAttachmentsInner>, sender: InboxWebhookMessageSender, sent_at: String, is_read: bool, ) -> InboxWebhookMessage
The message object included in inbox webhook payloads.
Trait Implementations§
Source§impl Clone for InboxWebhookMessage
impl Clone for InboxWebhookMessage
Source§fn clone(&self) -> InboxWebhookMessage
fn clone(&self) -> InboxWebhookMessage
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 InboxWebhookMessage
impl Debug for InboxWebhookMessage
Source§impl Default for InboxWebhookMessage
impl Default for InboxWebhookMessage
Source§fn default() -> InboxWebhookMessage
fn default() -> InboxWebhookMessage
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for InboxWebhookMessage
impl<'de> Deserialize<'de> for InboxWebhookMessage
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
Source§impl PartialEq for InboxWebhookMessage
impl PartialEq for InboxWebhookMessage
Source§fn eq(&self, other: &InboxWebhookMessage) -> bool
fn eq(&self, other: &InboxWebhookMessage) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for InboxWebhookMessage
impl Serialize for InboxWebhookMessage
impl StructuralPartialEq for InboxWebhookMessage
Auto Trait Implementations§
impl Freeze for InboxWebhookMessage
impl RefUnwindSafe for InboxWebhookMessage
impl Send for InboxWebhookMessage
impl Sync for InboxWebhookMessage
impl Unpin for InboxWebhookMessage
impl UnsafeUnpin for InboxWebhookMessage
impl UnwindSafe for InboxWebhookMessage
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