Skip to content

docs(models): document fields in the four large request/response modules#96

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

docs(models): document fields in the four large request/response modules#96
joshrotenberg merged 1 commit into
mainfrom
docs/big-models-field-coverage

Conversation

@joshrotenberg
Copy link
Copy Markdown
Contributor

Summary

Field-level rustdoc pass on the four largest model modules so the crate compiles cleanly under RUSTDOCFLAGS="-D missing_docs":

  • src/fixed/databases.rs (~70 fields)
  • src/fixed/subscriptions.rs (~65 fields)
  • src/flexible/databases.rs (~62 fields)
  • src/flexible/subscriptions.rs (~52 fields)

Approximately 249 missing-docs errors across these four files reduced to 0. Uses the conventions established in #92 (types) and #94 (small modules):

  • Short, factual one-liners (no paragraphs, no # Errors / # Examples sections on fields)
  • subscription_id / database_id on request bodies documented as "Server-populated from the path"
  • command_type documented as the read-only server-set operation discriminator
  • Nested struct fields link to their type via intra-doc references (e.g. See [ReplicaOfSpec].)
  • links: Option<Vec<Link>> left as the existing HATEOAS links convention

This PR is docs-only: no struct fields, types, serde renames, or wire shapes were modified.

Refs #80.

Test plan

  • cargo fmt --all -- --check passes
  • cargo clippy --workspace --all-targets -- -D warnings clean
  • cargo test --workspace passes (all tests green, including wiremock-based integration tests)
  • RUSTDOCFLAGS="-D missing_docs" cargo doc --no-deps --workspace reports 0 errors in the four target files (remaining 22 errors live in users.rs, covered by docs(users): document all undocumented fields in user request/response models #95)

Add field-level rustdoc to the four largest model modules so the crate
compiles cleanly under `RUSTDOCFLAGS="-D missing_docs"`:

- `src/fixed/databases.rs`
- `src/fixed/subscriptions.rs`
- `src/flexible/databases.rs`
- `src/flexible/subscriptions.rs`

Closes the missing-docs gap for these files (249 -> 0) using the
conventions established in #92 and #94 — short, factual one-liners,
`subscription_id`/`database_id` on request bodies noted as
"Server-populated from the path", `command_type` documented as a
read-only server-set discriminator, and nested structs linked via
intra-doc references.

Pure docs change: no struct fields, types, or wire shapes were
modified. Refs #80.
@joshrotenberg joshrotenberg merged commit 59667bc into main May 19, 2026
8 checks passed
@joshrotenberg joshrotenberg deleted the docs/big-models-field-coverage branch May 19, 2026 20:51
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