Skip to content

docs(users): document all undocumented fields in user request/response models#95

Merged
joshrotenberg merged 1 commit into
mainfrom
docs/users-rs-field-coverage
May 19, 2026
Merged

docs(users): document all undocumented fields in user request/response models#95
joshrotenberg merged 1 commit into
mainfrom
docs/users-rs-field-coverage

Conversation

@joshrotenberg
Copy link
Copy Markdown
Contributor

Summary

Closes the 21 missing-docs errors in src/users.rs. Every field on AccountUserUpdateRequest, AccountUsers, AccountUserOptions, the local TaskStateUpdate copy, and AccountUser now carries a brief description.

Highlights

Net effect on #80 progress

Strict-lint missing-docs errors drop by 21. After this and #94 merge, remaining errors are concentrated in the four large request/response modules:

File Remaining
src/fixed/databases.rs 70
src/fixed/subscriptions.rs 65
src/flexible/databases.rs 62
src/flexible/subscriptions.rs 52
Total 249

Those ship as the next set of PRs.

Test plan

  • cargo fmt --all -- --check
  • cargo clippy --workspace --all-targets -- -D warnings
  • cargo test --workspace — all pass; 72 doctests

Refs #80, #64

…e models

Closes the 21 missing-docs errors in src/users.rs. Now every field on
AccountUserUpdateRequest, AccountUsers, AccountUserOptions, the local
TaskStateUpdate copy, and AccountUser carries a brief description.

Highlights:

- user_id on update request: 'server-populated from path' pattern
  consistent with the other update-request structs in the crate.
- command_type on update: read-only response field with an example
  operation type, matching the convention applied in
  cloud_accounts/acl/connectivity update requests.
- AccountUserOptions: documents the four notification/access flags
  (billing, email_alerts, operational_emails, mfa_enabled) so callers
  know what each toggle controls.
- AccountUser: documents the eight user-record fields (id/name/email
  /role/sign_up/user_type/has_api_key/options) with realistic
  examples for the enum-like string fields.
- The local TaskStateUpdate copy is doc-noted as a duplicate of
  crate::types::TaskStateUpdate, with a pointer to #64 for the
  canonical-type consolidation.

Strict-lint missing-docs error count drops by 21 (302 → 281 on main).
After this and #94 merge, all remaining errors are concentrated in
the four large request/response modules (fixed/databases,
fixed/subscriptions, flexible/databases, flexible/subscriptions).

Refs #80 (rustdoc umbrella — P0 missing-docs slice for users.rs)
Refs #64 (canonical task type)
@joshrotenberg joshrotenberg merged commit a7b16c9 into main May 19, 2026
8 checks passed
@joshrotenberg joshrotenberg deleted the docs/users-rs-field-coverage branch May 19, 2026 20:35
joshrotenberg added a commit that referenced this pull request May 19, 2026
…nks (#98)

All 368 missing-docs errors surfaced by the 2026-05 review are now
closed across the cloud crate (#90, #91, #92, #93, #94, #95, #96).
This commit promotes those lints to compile errors so the bar
cannot regress without a deliberate decision.

- Adds #![deny(missing_docs)] to lib.rs — every public item must
  carry a docstring.
- Adds #![deny(rustdoc::broken_intra_doc_links)] — the intra-doc
  links added throughout the rustdoc pass (TaskStateUpdate ↔
  TaskStatus, ConnectivityHandler delegation pointers, etc.) stay
  valid going forward.

No source-level behavior changes. cargo fmt, cargo clippy
--workspace --all-targets -- -D warnings, cargo test --workspace,
and cargo doc --no-deps all pass.

Closes #80
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.

1 participant