pub struct Post {
pub id: PostId,
pub provider: String,
pub platform: String,
pub message: Option<String>,
pub link: Option<String>,
pub image_url: Option<String>,
pub permalink: Option<String>,
pub created_at: DateTime<Utc>,
pub raw: Option<Value>,
}Expand description
A unified post representation across all providers.
Fields§
§id: PostIdUnique identifier.
provider: StringWhich provider this post belongs to.
platform: StringThe social platform (e.g. “facebook”, “instagram”).
message: Option<String>Post message or caption.
link: Option<String>Destination link URL.
image_url: Option<String>Image URL attached to the post.
permalink: Option<String>Public permalink to the post.
created_at: DateTime<Utc>When the post was created.
raw: Option<Value>Original API response for debugging and raw access.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Post
impl<'de> Deserialize<'de> for Post
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 Formattable for Post
impl Formattable for Post
Auto Trait Implementations§
impl Freeze for Post
impl RefUnwindSafe for Post
impl Send for Post
impl Sync for Post
impl Unpin for Post
impl UnsafeUnpin for Post
impl UnwindSafe for Post
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