pub struct ExternalPostWebhookPost {
pub id: String,
pub platform: String,
pub account_id: String,
pub url: Option<String>,
pub content: String,
pub media_type: String,
pub media_items: Vec<ExternalPostMediaItem>,
pub thumbnail_url: Option<String>,
pub published_at: String,
pub source: Source,
pub deleted_at: Option<Option<String>>,
}Expand description
ExternalPostWebhookPost : Native (external) post data shared by all post.external.* payloads.
Fields§
§id: StringPlatform-native post ID (NOT a Zernio post ID).
platform: StringPlatform the post lives on (e.g. "googlebusiness").
account_id: StringZernio social account ID the post belongs to.
url: Option<String>Direct URL to the post on the platform, when available.
content: StringPost text. May be empty.
media_type: StringOne of image, video, gif, document, text, carousel.
media_items: Vec<ExternalPostMediaItem>§thumbnail_url: Option<String>§published_at: String§source: SourceAlways "external" — distinguishes these from Zernio-originated post.* events.
deleted_at: Option<Option<String>>Detection time of deletion. Present on post.external.deleted; null/absent otherwise.
Implementations§
Source§impl ExternalPostWebhookPost
impl ExternalPostWebhookPost
Sourcepub fn new(
id: String,
platform: String,
account_id: String,
url: Option<String>,
content: String,
media_type: String,
media_items: Vec<ExternalPostMediaItem>,
thumbnail_url: Option<String>,
published_at: String,
source: Source,
) -> ExternalPostWebhookPost
pub fn new( id: String, platform: String, account_id: String, url: Option<String>, content: String, media_type: String, media_items: Vec<ExternalPostMediaItem>, thumbnail_url: Option<String>, published_at: String, source: Source, ) -> ExternalPostWebhookPost
Native (external) post data shared by all post.external.* payloads.
Trait Implementations§
Source§impl Clone for ExternalPostWebhookPost
impl Clone for ExternalPostWebhookPost
Source§fn clone(&self) -> ExternalPostWebhookPost
fn clone(&self) -> ExternalPostWebhookPost
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 ExternalPostWebhookPost
impl Debug for ExternalPostWebhookPost
Source§impl Default for ExternalPostWebhookPost
impl Default for ExternalPostWebhookPost
Source§fn default() -> ExternalPostWebhookPost
fn default() -> ExternalPostWebhookPost
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ExternalPostWebhookPost
impl<'de> Deserialize<'de> for ExternalPostWebhookPost
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 ExternalPostWebhookPost
impl PartialEq for ExternalPostWebhookPost
Source§impl Serialize for ExternalPostWebhookPost
impl Serialize for ExternalPostWebhookPost
impl StructuralPartialEq for ExternalPostWebhookPost
Auto Trait Implementations§
impl Freeze for ExternalPostWebhookPost
impl RefUnwindSafe for ExternalPostWebhookPost
impl Send for ExternalPostWebhookPost
impl Sync for ExternalPostWebhookPost
impl Unpin for ExternalPostWebhookPost
impl UnsafeUnpin for ExternalPostWebhookPost
impl UnwindSafe for ExternalPostWebhookPost
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