pub enum InfoContextBuilderFieldTopLevelValue {
Value(InfoContextBuilderFieldBottomLevelValue),
Dictionary {
name: String,
fields: InfoContextFieldBottomLevelData,
},
}
Variants§
Value(InfoContextBuilderFieldBottomLevelValue)
A simple bottom-level value.
Dictionary
A dictionary value.
An example of what it looks like:
ⓘ
> redis-cli: INFO
>
> # <section name>
<dictionary name>:<key 1>=<value 1>,<key 2>=<value 2>
Let’s suppose we added a section "my_info"
. Then into this
section we can add a dictionary. Let’s add a dictionary named
"module"
, with with fields "name"
which is equal to
"redisgears_2"
and "ver"
with a value of 999999
. If our
module is named “redisgears_2”, we can call INFO redisgears_2
to obtain this information:
ⓘ
> redis-cli: INFO redisgears_2
>
> # redisgears_2_my_info
module:name=redisgears_2,ver=999999
Trait Implementations§
source§impl Clone for InfoContextBuilderFieldTopLevelValue
impl Clone for InfoContextBuilderFieldTopLevelValue
source§fn clone(&self) -> InfoContextBuilderFieldTopLevelValue
fn clone(&self) -> InfoContextBuilderFieldTopLevelValue
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl RefUnwindSafe for InfoContextBuilderFieldTopLevelValue
impl Send for InfoContextBuilderFieldTopLevelValue
impl Sync for InfoContextBuilderFieldTopLevelValue
impl Unpin for InfoContextBuilderFieldTopLevelValue
impl UnwindSafe for InfoContextBuilderFieldTopLevelValue
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more