Trait WorkNotifier

Source
pub trait WorkNotifier {
    // Required methods
    fn work_notification_send<'life0, 'async_trait>(
        &'life0 self,
        params: ParamsWorkNotificationSend,
    ) -> Pin<Box<dyn Future<Output = Result<i64>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn status_bar_update<'life0, 'async_trait>(
        &'life0 self,
        params: ParamsStatusBarUpdate,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn work_notification_send_progress_get<'life0, 'async_trait>(
        &'life0 self,
        agent_id: i64,
        task_id: i64,
    ) -> Pin<Box<dyn Future<Output = Result<AsyncSendProgress>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn work_notification_send_result_get<'life0, 'async_trait>(
        &'life0 self,
        agent_id: i64,
        task_id: i64,
    ) -> Pin<Box<dyn Future<Output = Result<AsyncSendResult>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn work_notification_recall_get<'life0, 'async_trait>(
        &'life0 self,
        agent_id: i64,
        task_id: i64,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}

Required Methods§

Source

fn work_notification_send<'life0, 'async_trait>( &'life0 self, params: ParamsWorkNotificationSend, ) -> Pin<Box<dyn Future<Output = Result<i64>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

发送工作通知 https://open.dingtalk.com/document/orgapp-server/asynchronous-sending-of-enterprise-session-messages @return task_id

Source

fn status_bar_update<'life0, 'async_trait>( &'life0 self, params: ParamsStatusBarUpdate, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

更新工作通知状态栏 https://open.dingtalk.com/document/orgapp-server/update-work-notification-status-bar

Source

fn work_notification_send_progress_get<'life0, 'async_trait>( &'life0 self, agent_id: i64, task_id: i64, ) -> Pin<Box<dyn Future<Output = Result<AsyncSendProgress>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

获取工作通知消息的发送进度 https://open.dingtalk.com/document/orgapp-server/obtain-the-sending-progress-of-asynchronous-sending-of-enterprise-session @params agent_id: 发送消息时使用的微应用的ID。 企业内部应用可在开发者后台的应用详情页面查看。 第三方企业应用可调用获取企业授权信息接口获取。 task_id: 发送消息时钉钉返回的任务ID。

Source

fn work_notification_send_result_get<'life0, 'async_trait>( &'life0 self, agent_id: i64, task_id: i64, ) -> Pin<Box<dyn Future<Output = Result<AsyncSendResult>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

获取工作通知消息的发送结果 https://open.dingtalk.com/document/orgapp-server/gets-the-result-of-sending-messages-asynchronously-to-the-enterprise @params agent_id: 发送消息时使用的微应用的ID。 企业内部应用可在开发者后台的应用详情页面查看。 第三方企业应用可调用获取企业授权信息接口获取。 task_id: 发送消息时钉钉返回的任务ID。

Source

fn work_notification_recall_get<'life0, 'async_trait>( &'life0 self, agent_id: i64, task_id: i64, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

获取工作通知消息的发送结果 https://open.dingtalk.com/document/orgapp-server/gets-the-result-of-sending-messages-asynchronously-to-the-enterprise @params agent_id: 发送消息时使用的微应用的ID。 企业内部应用可在开发者后台的应用详情页面查看。 第三方企业应用可调用获取企业授权信息接口获取。 task_id: 发送消息时钉钉返回的任务ID。

Implementors§