@@ -109,7 +109,7 @@ fn format_cache_control(cc: &CacheControl) -> String {
109109
110110/// Configuration options which control behavior of the cache. Use with `CachePolicy::new_options()`.
111111#[ derive( Debug , Copy , Clone ) ]
112- #[ cfg_attr( feature = "with_serde " , derive( serde:: Serialize , serde:: Deserialize ) ) ]
112+ #[ cfg_attr( feature = "serde " , derive( serde:: Serialize , serde:: Deserialize ) ) ]
113113pub struct CacheOptions {
114114 /// If `true` (default), then the response is evaluated from a
115115 /// perspective of a shared cache (i.e. `private` is not cacheable and
@@ -152,17 +152,17 @@ impl Default for CacheOptions {
152152/// tricky details such as the Vary header, proxy revalidation, and
153153/// authenticated responses.
154154#[ derive( Debug , Clone ) ]
155- #[ cfg_attr( feature = "with_serde " , derive( serde:: Serialize , serde:: Deserialize ) ) ]
155+ #[ cfg_attr( feature = "serde " , derive( serde:: Serialize , serde:: Deserialize ) ) ]
156156pub struct CachePolicy {
157- #[ cfg_attr( feature = "with_serde " , serde( with = "http_serde::header_map" ) ) ]
157+ #[ cfg_attr( feature = "serde " , serde( with = "http_serde::header_map" ) ) ]
158158 req : HeaderMap ,
159- #[ cfg_attr( feature = "with_serde " , serde( with = "http_serde::header_map" ) ) ]
159+ #[ cfg_attr( feature = "serde " , serde( with = "http_serde::header_map" ) ) ]
160160 res : HeaderMap ,
161- #[ cfg_attr( feature = "with_serde " , serde( with = "http_serde::uri" ) ) ]
161+ #[ cfg_attr( feature = "serde " , serde( with = "http_serde::uri" ) ) ]
162162 uri : Uri ,
163- #[ cfg_attr( feature = "with_serde " , serde( with = "http_serde::status_code" ) ) ]
163+ #[ cfg_attr( feature = "serde " , serde( with = "http_serde::status_code" ) ) ]
164164 status : StatusCode ,
165- #[ cfg_attr( feature = "with_serde " , serde( with = "http_serde::method" ) ) ]
165+ #[ cfg_attr( feature = "serde " , serde( with = "http_serde::method" ) ) ]
166166 method : Method ,
167167 opts : CacheOptions ,
168168 res_cc : CacheControl ,
0 commit comments