src/types/addons: meta no longer wrapped in Option
@@ -63,7 +63,10 @@ pub enum ResourceResponse {
has_more: bool,
},
Meta {
- meta: Option<MetaItem>,
+ // NOTE: we are not putting this in Option<>, since that way it gives us a valid
+ // fallback to all of the previous variants, therefore resulting in inaccurate err messages
+ // To support other /meta/ responses (meta extensions), we should make a MetaExt variant
+ meta: MetaItem,
},
//Streams { streams: Vec<Stream> },
}
