pub struct InboxWebhookMessageAttachmentsInner {
pub type: String,
pub url: String,
pub payload: Option<Value>,
}Fields§
§type: StringAttachment type (image, video, file, sticker, audio)
url: StringWhere to fetch the attachment. The contract depends on direction and platform: inbound WhatsApp media points at the authenticated GET /v1/whatsapp/media/{mediaId} and requires Authorization: Bearer <your API key>, while outgoing media carries the URL originally supplied and Instagram / Facebook / Telegram carry direct platform CDN links that need no authentication.
payload: Option<Value>Additional attachment metadata
Implementations§
Source§impl InboxWebhookMessageAttachmentsInner
impl InboxWebhookMessageAttachmentsInner
pub fn new(type: String, url: String) -> InboxWebhookMessageAttachmentsInner
Trait Implementations§
Source§impl Clone for InboxWebhookMessageAttachmentsInner
impl Clone for InboxWebhookMessageAttachmentsInner
Source§fn clone(&self) -> InboxWebhookMessageAttachmentsInner
fn clone(&self) -> InboxWebhookMessageAttachmentsInner
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 Default for InboxWebhookMessageAttachmentsInner
impl Default for InboxWebhookMessageAttachmentsInner
Source§fn default() -> InboxWebhookMessageAttachmentsInner
fn default() -> InboxWebhookMessageAttachmentsInner
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for InboxWebhookMessageAttachmentsInner
impl<'de> Deserialize<'de> for InboxWebhookMessageAttachmentsInner
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
impl StructuralPartialEq for InboxWebhookMessageAttachmentsInner
Auto Trait Implementations§
impl Freeze for InboxWebhookMessageAttachmentsInner
impl RefUnwindSafe for InboxWebhookMessageAttachmentsInner
impl Send for InboxWebhookMessageAttachmentsInner
impl Sync for InboxWebhookMessageAttachmentsInner
impl Unpin for InboxWebhookMessageAttachmentsInner
impl UnsafeUnpin for InboxWebhookMessageAttachmentsInner
impl UnwindSafe for InboxWebhookMessageAttachmentsInner
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