Struct aerostream::feedpost::FeedPost
source · pub struct FeedPost {
pub uri: String,
pub cid: Cid,
pub repo: String,
pub indexed_at: DateTime<Utc>,
pub post: AppBskyFeedPost,
pub extra: HashMap<String, String>,
}
Expand description
Structure of PDS posts
Fields§
§uri: String
§cid: Cid
§repo: String
§indexed_at: DateTime<Utc>
§post: AppBskyFeedPost
§extra: HashMap<String, String>
Implementations§
source§impl FeedPost
impl FeedPost
sourcepub fn new(uri: &str, cid: &str, repo: &str, post: &AppBskyFeedPost) -> Self
pub fn new(uri: &str, cid: &str, repo: &str, post: &AppBskyFeedPost) -> Self
Create a record of PDS post
sourcepub fn to_response(&self) -> AppBskyFeedDefsSkeletonfeedpost
pub fn to_response(&self) -> AppBskyFeedDefsSkeletonfeedpost
Convert to FeedGenerator response
Trait Implementations§
source§impl<'de> Deserialize<'de> for FeedPost
impl<'de> Deserialize<'de> for FeedPost
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
Auto Trait Implementations§
impl Freeze for FeedPost
impl RefUnwindSafe for FeedPost
impl Send for FeedPost
impl Sync for FeedPost
impl Unpin for FeedPost
impl UnwindSafe for FeedPost
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