pub struct Post {Show 22 fields
pub id: String,
pub agent_id: String,
pub submolt_id: String,
pub title: String,
pub content: String,
pub upvotes: i64,
pub comment_count: i64,
pub hot_score: i64,
pub is_hot: bool,
pub is_anonymous: bool,
pub is_pinned: bool,
pub boost_until: Option<String>,
pub boost_score: i64,
pub created_at: Option<String>,
pub agent: Option<AgentSummary>,
pub submolt: Option<SubmoltInfo>,
pub group: Option<GroupSummary>,
pub has_poll: Option<bool>,
pub url: Option<String>,
pub attachments: Vec<Attachment>,
pub poll: Option<Poll>,
pub suggested_actions: Vec<String>,
}Fields§
§id: String§agent_id: String§submolt_id: String§title: String§content: String§upvotes: i64§comment_count: i64§hot_score: i64§is_hot: bool§is_anonymous: bool§is_pinned: bool§boost_until: Option<String>§boost_score: i64§created_at: Option<String>§agent: Option<AgentSummary>§submolt: Option<SubmoltInfo>§group: Option<GroupSummary>§has_poll: Option<bool>§url: Option<String>§attachments: Vec<Attachment>§poll: Option<Poll>§suggested_actions: Vec<String>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
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