pub struct BatchMessageService {
pub config: Config,
}Expand description
批量消息服务
Fields§
§config: ConfigImplementations§
Source§impl BatchMessageService
impl BatchMessageService
pub fn new(config: Config) -> Self
Sourcepub async fn send(
&self,
receive_id_type: ReceiveIdType,
request: BatchSendMessageRequest,
option: Option<RequestOption>,
) -> SDKResult<BaseResponse<BatchSendMessageResponse>>
pub async fn send( &self, receive_id_type: ReceiveIdType, request: BatchSendMessageRequest, option: Option<RequestOption>, ) -> SDKResult<BaseResponse<BatchSendMessageResponse>>
批量发送消息
Sourcepub async fn delete(
&self,
batch_message_id: &str,
option: Option<RequestOption>,
) -> SDKResult<BaseResponse<EmptyResponse>>
pub async fn delete( &self, batch_message_id: &str, option: Option<RequestOption>, ) -> SDKResult<BaseResponse<EmptyResponse>>
批量撤回消息
Sourcepub async fn get_progress(
&self,
batch_message_id: &str,
option: Option<RequestOption>,
) -> SDKResult<BaseResponse<GetBatchProgressResponse>>
pub async fn get_progress( &self, batch_message_id: &str, option: Option<RequestOption>, ) -> SDKResult<BaseResponse<GetBatchProgressResponse>>
查询批量消息整体进度
Sourcepub async fn read_user(
&self,
batch_message_id: &str,
user_id_type: Option<UserIdType>,
page_size: Option<i32>,
page_token: Option<String>,
option: Option<RequestOption>,
) -> SDKResult<BaseResponse<GetBatchReadUserResponse>>
pub async fn read_user( &self, batch_message_id: &str, user_id_type: Option<UserIdType>, page_size: Option<i32>, page_token: Option<String>, option: Option<RequestOption>, ) -> SDKResult<BaseResponse<GetBatchReadUserResponse>>
查询批量消息推送和阅读人数
Auto Trait Implementations§
impl Freeze for BatchMessageService
impl !RefUnwindSafe for BatchMessageService
impl Send for BatchMessageService
impl Sync for BatchMessageService
impl Unpin for BatchMessageService
impl !UnwindSafe for BatchMessageService
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