diff --git a/README.md b/README.md index f4c1e33..e0c92a9 100644 --- a/README.md +++ b/README.md @@ -76,6 +76,10 @@ pub struct QueryParams { #[substruct_attr(not(QueryParams), serde(rename = "before_ts"))] pub after: Option, + // This field has a pub(crate) visibility on ThreadQueryParams + #[substruct(pub(crate) ThreadQueryParams)] + pub hidden: bool, + // Limit is only present on QueryParams. pub limit: Option, } @@ -87,4 +91,5 @@ used by all of the child structs. # See Also -- The [subenum](https://crates.io/crates/subenum) \ No newline at end of file +- The [subenum](https://crates.io/crates/subenum) crate offers the same thing + for enums. \ No newline at end of file