From b8f19265cf246adcecb3bd981f07fbae6da4903f Mon Sep 17 00:00:00 2001 From: ChenYing Kuo Date: Mon, 29 Jan 2024 11:57:00 +0800 Subject: [PATCH] Add some description about encoding for get in document. Signed-off-by: ChenYing Kuo --- zenoh/src/query.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/zenoh/src/query.rs b/zenoh/src/query.rs index 6ca73de661..cc70021013 100644 --- a/zenoh/src/query.rs +++ b/zenoh/src/query.rs @@ -297,6 +297,7 @@ impl<'a, 'b, Handler> GetBuilder<'a, 'b, Handler> { } /// Set query value. + /// The existing value and encoding will be overwritten. #[inline] pub fn with_value(mut self, value: IntoValue) -> Self where @@ -306,7 +307,8 @@ impl<'a, 'b, Handler> GetBuilder<'a, 'b, Handler> { self } - /// Change the encoding of the query value. + /// Set the encoding of the existing query value. + /// The empty value will be created if value is not set. #[inline] pub fn encoding(mut self, encoding: IntoEncoding) -> Self where