pub struct SecurityApi { /* private fields */ }Expand description
安全相关 API 门面
Implementations§
Source§impl SecurityApi
impl SecurityApi
Sourcepub fn new(client: MpClient) -> SecurityApi
pub fn new(client: MpClient) -> SecurityApi
基于客户端创建
Sourcepub async fn msg_sec_check(
&self,
req: &MsgSecCheckRequest,
) -> Result<MsgSecCheckResponse, MpError>
pub async fn msg_sec_check( &self, req: &MsgSecCheckRequest, ) -> Result<MsgSecCheckResponse, MpError>
文本内容安全识别
Sourcepub async fn media_check_async(
&self,
req: &MediaCheckAsyncRequest,
) -> Result<MediaCheckAsyncResponse, MpError>
pub async fn media_check_async( &self, req: &MediaCheckAsyncRequest, ) -> Result<MediaCheckAsyncResponse, MpError>
多媒体内容安全识别(异步)
Sourcepub async fn get_user_risk_rank(
&self,
req: &GetUserRiskRankRequest,
) -> Result<GetUserRiskRankResponse, MpError>
pub async fn get_user_risk_rank( &self, req: &GetUserRiskRankRequest, ) -> Result<GetUserRiskRankResponse, MpError>
获取用户安全等级
Trait Implementations§
Source§impl Clone for SecurityApi
impl Clone for SecurityApi
Source§fn clone(&self) -> SecurityApi
fn clone(&self) -> SecurityApi
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for SecurityApi
impl !UnwindSafe for SecurityApi
impl Freeze for SecurityApi
impl Send for SecurityApi
impl Sync for SecurityApi
impl Unpin for SecurityApi
impl UnsafeUnpin for SecurityApi
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