pub struct PostView {
pub author: ProfileViewBasic,
pub cid: Cid,
pub embed: Option<PostViewEmbedEnum>,
pub indexed_at: Datetime,
pub labels: Option<Vec<Label>>,
pub like_count: Option<i64>,
pub record: Record,
pub reply_count: Option<i64>,
pub repost_count: Option<i64>,
pub threadgate: Option<ThreadgateView>,
pub uri: String,
pub viewer: Option<ViewerState>,
}
Fields§
§cid: Cid
§embed: Option<PostViewEmbedEnum>
§indexed_at: Datetime
§labels: Option<Vec<Label>>
§like_count: Option<i64>
§record: Record
§reply_count: Option<i64>
§repost_count: Option<i64>
§threadgate: Option<ThreadgateView>
§uri: String
§viewer: Option<ViewerState>
Trait Implementations§
source§impl<'de> Deserialize<'de> for PostView
impl<'de> Deserialize<'de> for PostView
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 PostView
impl PartialEq for PostView
impl Eq for PostView
impl StructuralPartialEq for PostView
Auto Trait Implementations§
impl RefUnwindSafe for PostView
impl Send for PostView
impl Sync for PostView
impl Unpin for PostView
impl UnwindSafe for PostView
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