pub struct ArticlePost {
pub title: String,
pub content: String,
pub tags: String,
pub commentable: bool,
pub notifyFollowers: bool,
pub type_: ArticleType,
pub showInList: u32,
pub rewardContent: Option<String>,
pub rewardPoint: Option<String>,
pub anonymous: Option<bool>,
pub offerPoint: Option<u32>,
}Expand description
发帖信息
Fields§
§title: String帖子标题
content: String帖子内容
帖子标签
commentable: bool是否允许评论
notifyFollowers: bool是否通知帖子关注者
type_: ArticleType帖子类型,ArticleType
showInList: u32是否在列表展示
rewardContent: Option<String>打赏内容
rewardPoint: Option<String>打赏积分
anonymous: Option<bool>是否匿名
offerPoint: Option<u32>提问悬赏积分
Implementations§
Trait Implementations§
Source§impl Clone for ArticlePost
impl Clone for ArticlePost
Source§fn clone(&self) -> ArticlePost
fn clone(&self) -> ArticlePost
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 ArticlePost
impl Debug for ArticlePost
Source§impl<'de> Deserialize<'de> for ArticlePost
impl<'de> Deserialize<'de> for ArticlePost
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 ArticlePost
impl RefUnwindSafe for ArticlePost
impl Send for ArticlePost
impl Sync for ArticlePost
impl Unpin for ArticlePost
impl UnsafeUnpin for ArticlePost
impl UnwindSafe for ArticlePost
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