pub struct PostContext {
pub comments_enabled: bool,
pub is_pinned: bool,
pub is_profile_pinned: bool,
pub edited: usize,
pub is_nsfw: bool,
pub repost: Option<RepostContext>,
pub reposts_enabled: bool,
pub answering: usize,
pub reactions_enabled: bool,
pub content_warning: String,
pub tags: Vec<String>,
pub full_unlist: bool,
}Fields§
§comments_enabled: bool§is_pinned: bool§is_profile_pinned: bool§edited: usize§is_nsfw: bool§repost: Option<RepostContext>§reposts_enabled: bool§answering: usizeThe ID of the question this post is answering.
reactions_enabled: bool§content_warning: String§full_unlist: boolTrait Implementations§
Source§impl Clone for PostContext
impl Clone for PostContext
Source§fn clone(&self) -> PostContext
fn clone(&self) -> PostContext
Returns a duplicate of the value. Read more
1.0.0 · 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 PostContext
impl Debug for PostContext
Source§impl Default for PostContext
impl Default for PostContext
Source§impl<'de> Deserialize<'de> for PostContext
impl<'de> Deserialize<'de> for PostContext
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 PostContext
impl RefUnwindSafe for PostContext
impl Send for PostContext
impl Sync for PostContext
impl Unpin for PostContext
impl UnwindSafe for PostContext
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