pub struct OpsApi { /* private fields */ }Expand description
openApi 管理 / 运维 API 门面
Implementations§
Source§impl OpsApi
impl OpsApi
pub fn new(client: MpClient) -> OpsApi
pub fn client(&self) -> &MpClient
Sourcepub async fn get_api_domain_ip(&self) -> Result<IpListResponse, MpError>
pub async fn get_api_domain_ip(&self) -> Result<IpListResponse, MpError>
微信 API 服务器 IP
Sourcepub async fn get_callback_ip(&self) -> Result<IpListResponse, MpError>
pub async fn get_callback_ip(&self) -> Result<IpListResponse, MpError>
微信推送服务器 IP
Sourcepub async fn callback_check(
&self,
req: &CallbackCheckRequest,
) -> Result<CallbackCheckResponse, MpError>
pub async fn callback_check( &self, req: &CallbackCheckRequest, ) -> Result<CallbackCheckResponse, MpError>
网络通信检测
Sourcepub async fn get_api_quota(
&self,
cgi_path: impl Into<String>,
) -> Result<GetQuotaResponse, MpError>
pub async fn get_api_quota( &self, cgi_path: impl Into<String>, ) -> Result<GetQuotaResponse, MpError>
查询 API 调用额度
Sourcepub async fn clear_quota_self(&self) -> Result<(), MpError>
pub async fn clear_quota_self(&self) -> Result<(), MpError>
清空当前配置 AppID 的全部日额度
Sourcepub async fn clear_api_quota(
&self,
cgi_path: impl Into<String>,
) -> Result<(), MpError>
pub async fn clear_api_quota( &self, cgi_path: impl Into<String>, ) -> Result<(), MpError>
重置指定接口日额度
Sourcepub async fn clear_quota_by_secret(
&self,
appid: impl Into<String>,
appsecret: impl Into<String>,
) -> Result<(), MpError>
pub async fn clear_quota_by_secret( &self, appid: impl Into<String>, appsecret: impl Into<String>, ) -> Result<(), MpError>
使用 AppSecret 清空额度
Sourcepub async fn clear_quota_by_secret_self(&self) -> Result<(), MpError>
pub async fn clear_quota_by_secret_self(&self) -> Result<(), MpError>
使用当前配置凭据清空额度
Sourcepub async fn get_rid_info(
&self,
rid: impl Into<String>,
) -> Result<GetRidResponse, MpError>
pub async fn get_rid_info( &self, rid: impl Into<String>, ) -> Result<GetRidResponse, MpError>
查询 rid 详情
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for OpsApi
impl !UnwindSafe for OpsApi
impl Freeze for OpsApi
impl Send for OpsApi
impl Sync for OpsApi
impl Unpin for OpsApi
impl UnsafeUnpin for OpsApi
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