You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
docs(redis-enterprise): add comprehensive field-level documentation for all API structs (#273)
* docs(redis-enterprise): add comprehensive field documentation from REST API
- CRDB: documented all fields with descriptions from API docs
- CrdbInstance: added field descriptions for instance configuration
- CreateCrdbRequest: documented request fields for Active-Active setup
- CreateCrdbInstance: documented instance creation fields
- DiagnosticRequest: documented diagnostic check request fields
- DiagnosticResult: documented check result fields
- DiagnosticReport: documented report structure fields
- DiagnosticSummary: documented summary statistics fields
All field descriptions based on Redis Enterprise REST API documentation
to provide clear guidance for developers using these structs.
* docs(redis-enterprise): add comprehensive field-level documentation for all API structs
Added detailed documentation for every field in all API response structs across
the redis-enterprise crate, based on official Redis Enterprise REST API docs.
Files documented (17 files, 50+ structs, 300+ fields):
- actions.rs: Action struct with status, progress, timestamps
- alerts.rs: Alert, AlertSettings, and alert configuration structs
- bdb_groups.rs: BdbGroup database group management
- bootstrap.rs: Bootstrap configuration and status structs
- cm_settings.rs: CmSettings cluster manager configuration
- crdb_tasks.rs: CrdbTask CRDB operation tracking
- debuginfo.rs: DebugInfo request and status structs
- job_scheduler.rs: ScheduledJob and JobExecution structs
- ldap_mappings.rs: LDAP configuration and mapping structs
- license.rs: License and usage tracking structs
- logs.rs: LogEntry and query structs
- migrations.rs: Migration and endpoint configuration
- ocsp.rs: OCSP configuration and status structs
- services.rs: Service configuration and status
- stats.rs: Statistics query and response structs
- suffixes.rs: DNS suffix management structs
- usage_report.rs: Usage reporting and summary structs
Documentation includes:
- Field purposes and usage descriptions
- Data types and formats (ISO 8601, percentages, bytes)
- Enum values for status/state fields
- Read-only indicators for system fields
- Units of measurement where applicable
- References to related API concepts
This significantly improves developer experience with better IDE support,
code completion, and self-documenting API structures.
* fix(tests): correct JSON field name for license type in tests
The License struct has #[serde(rename = "type")] annotation, so JSON
responses should use "type" not "type_". This was causing test failures
after adding field documentation.
Fixed all occurrences in license_tests.rs where mock responses were
using "type_" instead of "type".
0 commit comments