Skip to content

Commit

Permalink
Add some description about encoding for get in document.
Browse files Browse the repository at this point in the history
Signed-off-by: ChenYing Kuo <[email protected]>
  • Loading branch information
evshary committed Jan 29, 2024
1 parent 1700074 commit b8f1926
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion zenoh/src/query.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<IntoValue>(mut self, value: IntoValue) -> Self
where
Expand All @@ -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<IntoEncoding>(mut self, encoding: IntoEncoding) -> Self
where
Expand Down

0 comments on commit b8f1926

Please sign in to comment.