pub enum Scene {
Profile = 1,
Comment = 2,
Forum = 3,
SocialLog = 4,
}Expand description
内容安全检测场景
Variants§
Implementations§
Source§impl Scene
impl Scene
Sourcepub fn from_value(value: u32) -> Option<Self>
pub fn from_value(value: u32) -> Option<Self>
从数值创建场景
Sourcepub fn description(&self) -> &'static str
pub fn description(&self) -> &'static str
获取场景描述
Trait Implementations§
impl Copy for Scene
impl StructuralPartialEq for Scene
Auto Trait Implementations§
impl Freeze for Scene
impl RefUnwindSafe for Scene
impl Send for Scene
impl Sync for Scene
impl Unpin for Scene
impl UnwindSafe for Scene
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