pub struct WebhookPayloadCommentCommentAttachment {
pub type: String,
pub image_url: Option<String>,
pub url: Option<String>,
}Expand description
WebhookPayloadCommentCommentAttachment : Facebook only. Present on graphic-only comments (sticker, GIF, photo) that carry no text. URLs are ephemeral and may expire for Meta platforms (oe= expiry), so fetch promptly. Instagram comments do not support attachments.
Fields§
§type: StringAttachment type: sticker, animated_image_share, or photo.
image_url: Option<String>Rendered image/preview URL (from attachment.media.image.src).
url: Option<String>Source URL (from attachment.url). For GIFs this is an l.facebook.com redirect.
Implementations§
Source§impl WebhookPayloadCommentCommentAttachment
impl WebhookPayloadCommentCommentAttachment
Sourcepub fn new(type: String) -> WebhookPayloadCommentCommentAttachment
pub fn new(type: String) -> WebhookPayloadCommentCommentAttachment
Facebook only. Present on graphic-only comments (sticker, GIF, photo) that carry no text. URLs are ephemeral and may expire for Meta platforms (oe= expiry), so fetch promptly. Instagram comments do not support attachments.
Trait Implementations§
Source§impl Clone for WebhookPayloadCommentCommentAttachment
impl Clone for WebhookPayloadCommentCommentAttachment
Source§fn clone(&self) -> WebhookPayloadCommentCommentAttachment
fn clone(&self) -> WebhookPayloadCommentCommentAttachment
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 WebhookPayloadCommentCommentAttachment
impl Default for WebhookPayloadCommentCommentAttachment
Source§fn default() -> WebhookPayloadCommentCommentAttachment
fn default() -> WebhookPayloadCommentCommentAttachment
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for WebhookPayloadCommentCommentAttachment
impl<'de> Deserialize<'de> for WebhookPayloadCommentCommentAttachment
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 WebhookPayloadCommentCommentAttachment
impl PartialEq for WebhookPayloadCommentCommentAttachment
Source§fn eq(&self, other: &WebhookPayloadCommentCommentAttachment) -> bool
fn eq(&self, other: &WebhookPayloadCommentCommentAttachment) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for WebhookPayloadCommentCommentAttachment
Auto Trait Implementations§
impl Freeze for WebhookPayloadCommentCommentAttachment
impl RefUnwindSafe for WebhookPayloadCommentCommentAttachment
impl Send for WebhookPayloadCommentCommentAttachment
impl Sync for WebhookPayloadCommentCommentAttachment
impl Unpin for WebhookPayloadCommentCommentAttachment
impl UnsafeUnpin for WebhookPayloadCommentCommentAttachment
impl UnwindSafe for WebhookPayloadCommentCommentAttachment
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