#[repr(u8)]pub enum ArticleType {
Normal = 0,
Private = 1,
Broadcast = 2,
Thought = 3,
Unknown = 4,
Question = 5,
}Expand description
帖子类型
Variants§
Implementations§
Source§impl ArticleType
impl ArticleType
pub fn from_index(index: usize) -> Self
Trait Implementations§
Source§impl Clone for ArticleType
impl Clone for ArticleType
Source§fn clone(&self) -> ArticleType
fn clone(&self) -> ArticleType
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 ArticleType
impl Debug for ArticleType
Source§impl Default for ArticleType
impl Default for ArticleType
Source§fn default() -> ArticleType
fn default() -> ArticleType
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ArticleType
impl<'de> Deserialize<'de> for ArticleType
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 ArticleType
impl RefUnwindSafe for ArticleType
impl Send for ArticleType
impl Sync for ArticleType
impl Unpin for ArticleType
impl UnsafeUnpin for ArticleType
impl UnwindSafe for ArticleType
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