pub struct GeweHttpClient { /* private fields */ }Implementations§
Source§impl GeweHttpClient
impl GeweHttpClient
pub async fn fetch_contacts_list( &self, req: FetchContactsListRequest<'_>, ) -> Result<FetchContactsListResponse, GeweError>
pub async fn fetch_contacts_list_cache( &self, req: FetchContactsListCacheRequest<'_>, ) -> Result<(), GeweError>
pub async fn search_contacts( &self, req: SearchContactsRequest<'_>, ) -> Result<SearchContactsResponse, GeweError>
pub async fn get_contact_brief_info( &self, req: GetContactBriefInfoRequest<'_>, ) -> Result<GetContactBriefInfoResponse, GeweError>
pub async fn get_contact_detail_info( &self, req: GetContactDetailInfoRequest<'_>, ) -> Result<GetContactDetailInfoResponse, GeweError>
pub async fn get_phone_address_list( &self, req: GetPhoneAddressListRequest<'_>, ) -> Result<GetPhoneAddressListResponse, GeweError>
pub async fn check_contact_relation( &self, req: CheckRelationRequest<'_>, ) -> Result<CheckRelationResponse, GeweError>
Source§impl GeweHttpClient
impl GeweHttpClient
pub async fn add_contacts( &self, req: AddContactsRequest<'_>, ) -> Result<(), GeweError>
pub async fn set_friend_remark( &self, req: SetFriendRemarkRequest<'_>, ) -> Result<(), GeweError>
pub async fn set_friend_permissions( &self, req: SetFriendPermissionsRequest<'_>, ) -> Result<(), GeweError>
pub async fn upload_phone_address_list( &self, req: UploadPhoneAddressListRequest<'_>, ) -> Result<(), GeweError>
pub async fn delete_friend( &self, req: DeleteFriendRequest<'_>, ) -> Result<(), GeweError>
Source§impl GeweHttpClient
impl GeweHttpClient
pub async fn search_wecom_contact( &self, req: SearchWecomRequest<'_>, ) -> Result<SearchWecomResponse, GeweError>
pub async fn sync_wecom_contacts( &self, req: SyncWecomContactsRequest<'_>, ) -> Result<SyncWecomContactsResponse, GeweError>
pub async fn add_wecom_contact( &self, req: AddWecomContactRequest<'_>, ) -> Result<(), GeweError>
pub async fn get_wecom_contact_detail( &self, req: GetWecomContactDetailRequest<'_>, ) -> Result<GetWecomContactDetailResponse, GeweError>
Source§impl GeweHttpClient
impl GeweHttpClient
pub async fn sync_favorites( &self, req: SyncFavorRequest<'_>, ) -> Result<SyncFavorResponse, GeweError>
pub async fn get_favor_content( &self, req: GetFavorContentRequest<'_>, ) -> Result<GetFavorContentResponse, GeweError>
pub async fn delete_favor( &self, req: DeleteFavorRequest<'_>, ) -> Result<(), GeweError>
Source§impl GeweHttpClient
impl GeweHttpClient
pub async fn admin_operate( &self, req: AdminOperateRequest<'_>, ) -> Result<(), GeweError>
Source§impl GeweHttpClient
impl GeweHttpClient
pub async fn create_chatroom( &self, req: CreateChatroomRequest<'_>, ) -> Result<CreateChatroomResponse, GeweError>
pub async fn disband_chatroom( &self, req: DisbandChatroomRequest<'_>, ) -> Result<(), GeweError>
pub async fn quit_chatroom( &self, req: QuitChatroomRequest<'_>, ) -> Result<(), GeweError>
pub async fn modify_chatroom_name( &self, req: ModifyChatroomNameRequest<'_>, ) -> Result<(), GeweError>
pub async fn modify_chatroom_remark( &self, req: ModifyChatroomRemarkRequest<'_>, ) -> Result<(), GeweError>
pub async fn modify_chatroom_nick_name_for_self( &self, req: ModifyChatroomNickNameForSelfRequest<'_>, ) -> Result<(), GeweError>
Source§impl GeweHttpClient
impl GeweHttpClient
pub async fn invite_member( &self, req: InviteMemberRequest<'_>, ) -> Result<(), GeweError>
pub async fn remove_member( &self, req: RemoveMemberRequest<'_>, ) -> Result<(), GeweError>
pub async fn join_room_using_qr_code( &self, req: JoinRoomUsingQrCodeRequest<'_>, ) -> Result<(), GeweError>
pub async fn agree_join_room( &self, req: AgreeJoinRoomRequest<'_>, ) -> Result<(), GeweError>
pub async fn room_access_apply_check_approve( &self, req: RoomAccessApplyCheckApproveRequest<'_>, ) -> Result<(), GeweError>
pub async fn invite_add_enter_room( &self, req: InviteAddEnterRoomRequest<'_>, ) -> Result<(), GeweError>
pub async fn add_group_member_as_friend( &self, req: AddGroupMemberAsFriendRequest<'_>, ) -> Result<(), GeweError>
pub async fn get_chatroom_member_list( &self, req: GetChatroomMemberListRequest<'_>, ) -> Result<GetChatroomMemberListResponse, GeweError>
pub async fn get_chatroom_member_detail( &self, req: GetChatroomMemberDetailRequest<'_>, ) -> Result<GetChatroomMemberDetailResponse, GeweError>
pub async fn get_chatroom_info( &self, req: GetChatroomInfoRequest<'_>, ) -> Result<GetChatroomInfoResponse, GeweError>
Source§impl GeweHttpClient
impl GeweHttpClient
pub async fn set_chatroom_announcement( &self, req: SetChatroomAnnouncementRequest<'_>, ) -> Result<(), GeweError>
pub async fn get_chatroom_announcement( &self, req: GetChatroomAnnouncementRequest<'_>, ) -> Result<GetChatroomAnnouncementResponse, GeweError>
pub async fn get_chatroom_qr_code( &self, req: GetChatroomQrCodeRequest<'_>, ) -> Result<GetChatroomQrCodeResponse, GeweError>
pub async fn save_contract_list( &self, req: SaveContractListRequest<'_>, ) -> Result<(), GeweError>
pub async fn pin_chat(&self, req: PinChatRequest<'_>) -> Result<(), GeweError>
pub async fn set_msg_silence( &self, req: SetMsgSilenceRequest<'_>, ) -> Result<(), GeweError>
Source§impl GeweHttpClient
impl GeweHttpClient
pub async fn get_login_qr_code( &self, req: GetLoginQrCodeRequest<'_>, ) -> Result<GetLoginQrCodeResponse, GeweError>
pub async fn check_login( &self, req: CheckLoginRequest<'_>, ) -> Result<CheckLoginResponse, GeweError>
pub async fn dialog_login( &self, req: DialogLoginRequest<'_>, ) -> Result<DialogLoginResponse, GeweError>
pub async fn login_by_account( &self, req: LoginByAccountRequest<'_>, ) -> Result<LoginByAccountResponse, GeweError>
pub async fn set_callback( &self, req: SetCallbackRequest<'_>, ) -> Result<(), GeweError>
pub async fn change_mac_to_ipad( &self, req: ChangeMacToIpadRequest<'_>, ) -> Result<GetLoginQrCodeResponse, GeweError>
pub async fn check_online( &self, req: CheckOnlineRequest<'_>, ) -> Result<CheckOnlineResponse, GeweError>
pub async fn reconnection( &self, req: ReconnectionRequest<'_>, ) -> Result<Option<ReconnectionResponse>, GeweError>
pub async fn logout(&self, req: LogoutRequest<'_>) -> Result<(), GeweError>
Source§impl GeweHttpClient
impl GeweHttpClient
pub async fn download_image( &self, app_id: &str, xml: &str, image_type: i32, ) -> Result<DownloadImageResponse, GeweError>
pub async fn download_video( &self, app_id: &str, xml: &str, ) -> Result<DownloadVideoResponse, GeweError>
pub async fn download_file( &self, app_id: &str, xml: &str, ) -> Result<DownloadFileResponse, GeweError>
pub async fn download_voice( &self, app_id: &str, xml: &str, msg_id: i64, ) -> Result<DownloadVoiceResponse, GeweError>
pub async fn download_emoji( &self, app_id: &str, emoji_md5: &str, ) -> Result<DownloadEmojiResponse, GeweError>
pub async fn download_cdn( &self, app_id: &str, aes_key: &str, file_id: &str, file_type: &str, total_size: &str, suffix: &str, ) -> Result<DownloadCdnResponse, GeweError>
Source§impl GeweHttpClient
impl GeweHttpClient
pub async fn forward_image( &self, app_id: &str, to_wxid: &str, xml: &str, ) -> Result<ForwardImageResponse, GeweError>
pub async fn forward_video( &self, app_id: &str, to_wxid: &str, xml: &str, ) -> Result<ForwardVideoResponse, GeweError>
pub async fn forward_file( &self, app_id: &str, to_wxid: &str, xml: &str, ) -> Result<ForwardFileResponse, GeweError>
pub async fn forward_mini_app( &self, app_id: &str, to_wxid: &str, xml: &str, cover_img_url: &str, ) -> Result<ForwardMiniAppResponse, GeweError>
pub async fn forward_url( &self, app_id: &str, to_wxid: &str, xml: &str, ) -> Result<ForwardUrlResponse, GeweError>
Source§impl GeweHttpClient
impl GeweHttpClient
pub async fn send_text( &self, app_id: &str, to_wxid: &str, content: &str, ats: Option<&str>, ) -> Result<SendTextResponse, GeweError>
pub async fn send_image( &self, app_id: &str, to_wxid: &str, img_url: &str, ) -> Result<PostImageResponse, GeweError>
pub async fn send_voice( &self, app_id: &str, to_wxid: &str, voice_url: &str, voice_duration: i64, ) -> Result<PostVoiceResponse, GeweError>
pub async fn send_video( &self, app_id: &str, to_wxid: &str, video_url: &str, thumb_url: &str, video_duration: i64, ) -> Result<PostVideoResponse, GeweError>
pub async fn send_file( &self, app_id: &str, to_wxid: &str, file_url: &str, file_name: &str, ) -> Result<PostFileResponse, GeweError>
pub async fn send_link( &self, app_id: &str, to_wxid: &str, title: &str, desc: &str, link_url: &str, thumb_url: &str, ) -> Result<PostLinkResponse, GeweError>
pub async fn send_emoji( &self, app_id: &str, to_wxid: &str, emoji_md5: &str, emoji_size: i64, ) -> Result<PostEmojiResponse, GeweError>
pub async fn send_app_msg( &self, app_id: &str, to_wxid: &str, appmsg: &str, ) -> Result<PostAppMsgResponse, GeweError>
pub async fn send_mini_app( &self, app_id: &str, to_wxid: &str, mini_app_id: &str, display_name: &str, page_path: &str, cover_img_url: &str, title: &str, user_name: &str, ) -> Result<PostMiniAppResponse, GeweError>
pub async fn send_name_card( &self, app_id: &str, to_wxid: &str, nick_name: &str, name_card_wxid: &str, ) -> Result<PostNameCardResponse, GeweError>
Source§impl GeweHttpClient
impl GeweHttpClient
pub async fn like_sns(&self, req: LikeSnsRequest<'_>) -> Result<(), GeweError>
pub async fn comment_sns( &self, req: CommentSnsRequest<'_>, ) -> Result<(), GeweError>
Source§impl GeweHttpClient
impl GeweHttpClient
pub async fn delete_sns( &self, req: DeleteSnsRequest<'_>, ) -> Result<(), GeweError>
Source§impl GeweHttpClient
impl GeweHttpClient
pub async fn upload_sns_image( &self, req: UploadSnsImageRequest<'_>, ) -> Result<UploadSnsImageResponse, GeweError>
pub async fn upload_sns_video( &self, req: UploadSnsVideoRequest<'_>, ) -> Result<UploadSnsVideoResponse, GeweError>
pub async fn download_sns_video( &self, req: DownloadSnsVideoRequest<'_>, ) -> Result<DownloadSnsVideoResponse, GeweError>
Source§impl GeweHttpClient
impl GeweHttpClient
pub async fn send_text_sns( &self, req: SendTextSnsRequest<'_>, ) -> Result<SendSnsResponse, GeweError>
pub async fn send_img_sns( &self, req: SendImgSnsRequest<'_>, ) -> Result<SendSnsResponse, GeweError>
pub async fn send_video_sns( &self, req: SendVideoSnsRequest<'_>, ) -> Result<SendSnsResponse, GeweError>
pub async fn send_url_sns( &self, req: SendUrlSnsRequest<'_>, ) -> Result<SendSnsResponse, GeweError>
pub async fn forward_sns( &self, req: ForwardSnsRequest<'_>, ) -> Result<SendSnsResponse, GeweError>
Source§impl GeweHttpClient
impl GeweHttpClient
pub async fn set_stranger_visibility( &self, req: StrangerVisibilityRequest<'_>, ) -> Result<(), GeweError>
pub async fn set_sns_visible_scope( &self, req: SetSnsVisibleScopeRequest<'_>, ) -> Result<(), GeweError>
pub async fn set_sns_privacy( &self, req: SetSnsPrivacyRequest<'_>, ) -> Result<(), GeweError>
Source§impl GeweHttpClient
impl GeweHttpClient
pub async fn get_self_sns_list( &self, req: GetSelfSnsListRequest<'_>, ) -> Result<GetSelfSnsListResponse, GeweError>
pub async fn get_contacts_sns_list( &self, req: GetContactsSnsListRequest<'_>, ) -> Result<GetContactsSnsListResponse, GeweError>
pub async fn get_sns_details( &self, req: GetSnsDetailsRequest<'_>, ) -> Result<GetSnsDetailsResponse, GeweError>
Source§impl GeweHttpClient
impl GeweHttpClient
pub async fn get_profile( &self, req: GetProfileRequest<'_>, ) -> Result<GetProfileResponse, GeweError>
pub async fn update_profile( &self, req: UpdateProfileRequest<'_>, ) -> Result<(), GeweError>
pub async fn update_head_img( &self, req: UpdateHeadImgRequest<'_>, ) -> Result<(), GeweError>
pub async fn get_qr_code( &self, req: GetQrCodeRequest<'_>, ) -> Result<GetQrCodeResponse, GeweError>
Source§impl GeweHttpClient
impl GeweHttpClient
pub async fn get_safety_info( &self, req: GetSafetyInfoRequest<'_>, ) -> Result<GetSafetyInfoResponse, GeweError>
Source§impl GeweHttpClient
impl GeweHttpClient
pub async fn privacy_settings( &self, req: PrivacySettingsRequest<'_>, ) -> Result<(), GeweError>
Source§impl GeweHttpClient
impl GeweHttpClient
pub async fn add_label( &self, req: AddLabelRequest<'_>, ) -> Result<AddLabelResponse, GeweError>
pub async fn delete_label( &self, req: DeleteLabelRequest<'_>, ) -> Result<(), GeweError>
pub async fn list_labels( &self, req: ListLabelRequest<'_>, ) -> Result<ListLabelResponse, GeweError>
pub async fn modify_label_members( &self, req: ModifyLabelMemberRequest<'_>, ) -> Result<(), GeweError>
Source§impl GeweHttpClient
impl GeweHttpClient
pub async fn follow_finder( &self, req: FollowFinderRequest<'_>, ) -> Result<FollowFinderResponse, GeweError>
pub async fn follow_list( &self, req: FollowListRequest<'_>, ) -> Result<FollowListData, GeweError>
pub async fn search_follow( &self, req: SearchFollowRequest<'_>, ) -> Result<(), GeweError>
Source§impl GeweHttpClient
impl GeweHttpClient
pub async fn finder_opt( &self, req: FinderOptRequest<'_>, ) -> Result<(), GeweError>
pub async fn browse_finder( &self, req: BrowseFinderRequest<'_>, ) -> Result<(), GeweError>
pub async fn id_fav(&self, req: IdFavRequest<'_>) -> Result<(), GeweError>
pub async fn id_like(&self, req: IdLikeRequest<'_>) -> Result<(), GeweError>
pub async fn like_fav_list( &self, req: LikeFavListRequest<'_>, ) -> Result<LikeFavListResponse, GeweError>
pub async fn comment_finder( &self, req: CommentFinderRequest<'_>, ) -> Result<CommentFinderResponse, GeweError>
pub async fn comment_list( &self, req: CommentListRequest<'_>, ) -> Result<CommentListResponse, GeweError>
Source§impl GeweHttpClient
impl GeweHttpClient
pub async fn send_finder_msg( &self, req: SendFinderMsgRequest<'_>, ) -> Result<(), GeweError>
pub async fn post_private_letter( &self, req: PostPrivateLetterRequest<'_>, ) -> Result<PrivateLetterResponse, GeweError>
pub async fn post_private_letter_img( &self, req: PostPrivateLetterImgRequest<'_>, ) -> Result<PrivateLetterResponse, GeweError>
pub async fn sync_private_letter_msg( &self, req: SyncPrivateLetterMsgRequest<'_>, ) -> Result<SyncPrivateLetterMsgResponse, GeweError>
pub async fn mention_list( &self, req: MentionListRequest<'_>, ) -> Result<MentionListResponse, GeweError>
pub async fn contact_list( &self, req: ContactListRequest<'_>, ) -> Result<Vec<ContactListEntry>, GeweError>
Source§impl GeweHttpClient
impl GeweHttpClient
pub async fn create_finder( &self, req: CreateFinderRequest<'_>, ) -> Result<CreateFinderResponse, GeweError>
pub async fn update_finder_profile( &self, req: UpdateFinderProfileRequest<'_>, ) -> Result<(), GeweError>
pub async fn get_finder_profile( &self, req: GetFinderProfileRequest<'_>, ) -> Result<FinderProfileInfo, GeweError>
pub async fn get_finder_qr_code( &self, req: GetFinderQrCodeRequest<'_>, ) -> Result<GetFinderQrCodeResponse, GeweError>
pub async fn user_page( &self, req: UserPageRequest<'_>, ) -> Result<UserPageResponse, GeweError>
Source§impl GeweHttpClient
impl GeweHttpClient
pub async fn upload_finder_video( &self, req: UploadFinderVideoRequest<'_>, ) -> Result<UploadFinderVideoResponse, GeweError>
pub async fn publish_finder_cdn( &self, req: PublishFinderCdnRequest<'_>, ) -> Result<PublishFinderCdnResponse, GeweError>
pub async fn publish_finder_web( &self, req: PublishFinderWebRequest<'_>, ) -> Result<PublishFinderWebResponse, GeweError>
pub async fn send_finder_sns( &self, req: SendFinderSnsRequest<'_>, ) -> Result<(), GeweError>
Source§impl GeweHttpClient
impl GeweHttpClient
pub async fn scan_follow( &self, req: ScanFollowRequest<'_>, ) -> Result<ScanFollowResponse, GeweError>
pub async fn scan_browse( &self, req: ScanBrowseRequest<'_>, ) -> Result<(), GeweError>
pub async fn scan_like(&self, req: ScanLikeRequest<'_>) -> Result<(), GeweError>
pub async fn scan_fav(&self, req: ScanFavRequest<'_>) -> Result<(), GeweError>
pub async fn scan_comment( &self, req: ScanCommentRequest<'_>, ) -> Result<ScanCommentResponse, GeweError>
pub async fn scan_qr_code( &self, req: ScanQrCodeRequest<'_>, ) -> Result<ScanQrCodeResponse, GeweError>
pub async fn scan_login_channels( &self, req: ScanLoginChannelsRequest<'_>, ) -> Result<ScanLoginChannelsResponse, GeweError>
Source§impl GeweHttpClient
impl GeweHttpClient
pub async fn search_finder( &self, req: SearchFinderRequest<'_>, ) -> Result<SearchFinderResponse, GeweError>
Trait Implementations§
Source§impl Clone for GeweHttpClient
impl Clone for GeweHttpClient
Source§fn clone(&self) -> GeweHttpClient
fn clone(&self) -> GeweHttpClient
Returns a duplicate of the value. Read more
1.0.0 · 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 Freeze for GeweHttpClient
impl !RefUnwindSafe for GeweHttpClient
impl Send for GeweHttpClient
impl Sync for GeweHttpClient
impl Unpin for GeweHttpClient
impl !UnwindSafe for GeweHttpClient
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