default_root_object!() { /* proc-macro */ }Expand description
Creates a validated DefaultRootObject wrapper for CloudFront default root objects at compile time.
This macro ensures that the object name follows CloudFront’s requirements for default root objects, which are returned when viewers request the root URL of a distribution.
§Validation Rules
- Must NOT start with a forward slash (/)
- Must NOT end with a forward slash (/)
- Example: “index.html” is valid, but “/index.html” and “index.html/” are not