File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1151,10 +1151,6 @@ pub enum CacheScope {
11511151 Public ,
11521152 /// Only the requesting user's client may cache the response.
11531153 Private ,
1154- /// Alias for [`CacheScope::Private`] kept for compatibility with earlier draft support.
1155- User ,
1156- /// Alias for [`CacheScope::Public`] kept for compatibility with earlier draft support.
1157- Shared ,
11581154}
11591155
11601156impl Serialize for CacheScope {
@@ -1163,8 +1159,8 @@ impl Serialize for CacheScope {
11631159 S : serde:: Serializer ,
11641160 {
11651161 match self {
1166- CacheScope :: Public | CacheScope :: Shared => "public" ,
1167- CacheScope :: Private | CacheScope :: User => "private" ,
1162+ CacheScope :: Public => "public" ,
1163+ CacheScope :: Private => "private" ,
11681164 }
11691165 . serialize ( serializer)
11701166 }
@@ -1178,9 +1174,6 @@ impl<'de> Deserialize<'de> for CacheScope {
11781174 match String :: deserialize ( deserializer) ?. as_str ( ) {
11791175 "public" => Ok ( CacheScope :: Public ) ,
11801176 "private" => Ok ( CacheScope :: Private ) ,
1181- // Accept the earlier draft values for read-side compatibility.
1182- "shared" => Ok ( CacheScope :: Public ) ,
1183- "user" => Ok ( CacheScope :: Private ) ,
11841177 other => Err ( serde:: de:: Error :: unknown_variant (
11851178 other,
11861179 & [ "public" , "private" ] ,
You can’t perform that action at this time.
0 commit comments