Skip to content

Update API docs for &[Jid], #[non_exhaustive], and PartialEq/Eq - #149

Merged
mintlify[bot] merged 1 commit into
mainfrom
mintlify/api-ergonomics-1774734551
Mar 28, 2026
Merged

Update API docs for &[Jid], #[non_exhaustive], and PartialEq/Eq#149
mintlify[bot] merged 1 commit into
mainfrom
mintlify/api-ergonomics-1774734551

Conversation

@mintlify

@mintlify mintlify Bot commented Mar 28, 2026

Copy link
Copy Markdown
Contributor

Summary

Updates documentation across 9 files to reflect the breaking API changes from oxidezap/whatsapp-rust#457:

  • &[Jid] instead of Vec<Jid>: Updated Status API signatures and examples (send_text, send_image, send_video, send_raw, revoke) to use &[Jid] for recipients
  • #[non_exhaustive] on enums/structs: Added #[non_exhaustive] annotations and guidance for StatusPrivacySetting, PresenceStatus, PinDuration, RevokeType, ChatStateType, GroupType, NewsletterVerification, NewsletterState, NewsletterRole, NewsletterMessageType, and UploadOptions
  • PartialEq/Eq on types: Documented equality derivations for SendResult, GroupMetadata, GroupParticipant, CreateGroupResult, NewsletterMetadata, and community types
  • Updated code examples to use array/slice syntax instead of Vec for recipients
  • Added wildcard arms to match statements for #[non_exhaustive] enums

@mintlify
mintlify Bot merged commit 72ecbf4 into main Mar 28, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants