#[repr(u8)]pub enum RelationAction {
Follow = 1,
Unfollow = 2,
Whisper = 3,
Unwhisper = 4,
Blacklist = 5,
Unblacklist = 6,
KickFan = 7,
}Expand description
操作代码
用于 act 参数,定义了要执行的关系操作类型。
Variants§
Follow = 1
关注
Unfollow = 2
取关
Whisper = 3
悄悄关注(已下线)
Unwhisper = 4
取消悄悄关注
Blacklist = 5
拉黑
Unblacklist = 6
取消拉黑
KickFan = 7
踢出粉丝
Trait Implementations§
Source§impl Clone for RelationAction
impl Clone for RelationAction
Source§fn clone(&self) -> RelationAction
fn clone(&self) -> RelationAction
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for RelationAction
Source§impl Debug for RelationAction
impl Debug for RelationAction
Source§impl<'de> Deserialize<'de> for RelationAction
impl<'de> Deserialize<'de> for RelationAction
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
impl Eq for RelationAction
Source§impl PartialEq for RelationAction
impl PartialEq for RelationAction
Source§fn eq(&self, other: &RelationAction) -> bool
fn eq(&self, other: &RelationAction) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for RelationAction
impl Serialize for RelationAction
impl StructuralPartialEq for RelationAction
Auto Trait Implementations§
impl Freeze for RelationAction
impl RefUnwindSafe for RelationAction
impl Send for RelationAction
impl Sync for RelationAction
impl Unpin for RelationAction
impl UnsafeUnpin for RelationAction
impl UnwindSafe for RelationAction
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