File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
redismodule-rs-macros/src Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,14 @@ impl SupportedMaps {
2121/// Generate a [`From`] implementation for this struct so that it is
2222/// possible to generate a [`redis_module::InfoContext`] information
2323/// from it.
24+ ///
25+ /// A struct is compatible to be used with [`crate::InfoSection`] when
26+ /// it has fields, whose types are convertible to
27+ /// [`redis_module::InfoContextBuilderFieldTopLevelValue`] and (for
28+ /// the dictionaries) if it has fields which are compatible maps of
29+ /// objects, where a key is a [`String`] and a value is any type
30+ /// convertible to
31+ /// [`redis_module::InfoContextBuilderFieldBottomLevelValue`].
2432fn struct_info_section ( struct_name : Ident , struct_data : DataStruct ) -> TokenStream {
2533 let fields = match struct_data. fields {
2634 Fields :: Named ( f) => f,
You can’t perform that action at this time.
0 commit comments