pub struct WxOpenMaEmbeddedServiceImpl { /* private fields */ }Expand description
半屏小程序管理服务实现(对应 Java WxOpenMaEmbeddedServiceImpl)。
Implementations§
Trait Implementations§
Source§impl WxOpenMaEmbeddedService for WxOpenMaEmbeddedServiceImpl
impl WxOpenMaEmbeddedService for WxOpenMaEmbeddedServiceImpl
Source§fn add_embedded<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
embedded_app_id: &'life1 str,
apply_reason: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<(), WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn add_embedded<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
embedded_app_id: &'life1 str,
apply_reason: &'life2 str,
) -> Pin<Box<dyn Future<Output = Result<(), WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
添加半屏小程序(对应 Java addEmbedded(...):POST
{"appid": ...},apply_reason 非空才携带
{"apply_reason": ...},Java StringUtils.isNotBlank 语义)。
Source§fn delete_embedded<'life0, 'life1, 'async_trait>(
&'life0 self,
embedded_app_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(), WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn delete_embedded<'life0, 'life1, 'async_trait>(
&'life0 self,
embedded_app_id: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<(), WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
删除半屏小程序(对应 Java deleteEmbedded(...):POST
{"appid": ...})。
Source§fn get_embedded_list<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<WxOpenMaEmbeddedListResult, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_embedded_list<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<WxOpenMaEmbeddedListResult, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
获取半屏小程序调用列表(对应 Java getEmbeddedList():GET
null 参数 → WxOpenMaEmbeddedListResult)。
取消授权小程序(对应 Java deleteAuthorizedEmbedded(...):POST
{"appid": ...})。
Source§fn get_own_list<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<WxOpenMaEmbeddedListResult, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_own_list<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<WxOpenMaEmbeddedListResult, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
获取半屏小程序授权列表(对应 Java getOwnList():GET
?num=1000)。
Source§fn get_own_list_with<'life0, 'async_trait>(
&'life0 self,
start: Option<i32>,
num: Option<i32>,
) -> Pin<Box<dyn Future<Output = Result<WxOpenMaEmbeddedListResult, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn get_own_list_with<'life0, 'async_trait>(
&'life0 self,
start: Option<i32>,
num: Option<i32>,
) -> Pin<Box<dyn Future<Output = Result<WxOpenMaEmbeddedListResult, WxErrorException>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
获取半屏小程序授权列表(对应 Java getOwnList(Integer start, Integer num):null 取默认值 0/10、num > 1000 截断,GET
?start={start}&num={num})。
设置授权方式(对应 Java setAuthorizedEmbedded(Integer flag):
POST {"flag": ...};0 需要管理员验证,1 自动通过,2 自动拒绝)。
Auto Trait Implementations§
impl !RefUnwindSafe for WxOpenMaEmbeddedServiceImpl
impl !UnwindSafe for WxOpenMaEmbeddedServiceImpl
impl Freeze for WxOpenMaEmbeddedServiceImpl
impl Send for WxOpenMaEmbeddedServiceImpl
impl Sync for WxOpenMaEmbeddedServiceImpl
impl Unpin for WxOpenMaEmbeddedServiceImpl
impl UnsafeUnpin for WxOpenMaEmbeddedServiceImpl
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