Skip to content

Commit d9dbf31

Browse files
committed
Impl Debug and Clone
1 parent c4b2dd5 commit d9dbf31

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

zenoh/src/api/sample.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ impl DataInfoIntoSample for Option<DataInfo> {
170170

171171
/// Information on the source of a zenoh [`Sample`].
172172
#[zenoh_macros::unstable]
173-
#[derive(Debug, Clone)]
173+
#[derive(Debug, Clone, PartialEq, Eq)]
174174
pub struct SourceInfo {
175175
pub(crate) source_id: Option<EntityGlobalId>,
176176
pub(crate) source_sn: Option<SourceSn>,
@@ -300,6 +300,7 @@ impl TryFrom<u64> for SampleKind {
300300
}
301301

302302
/// Structure with public fields for sample. It's convenient if it's necessary to decompose a sample into its fields.
303+
#[derive(Debug, Clone)]
303304
pub struct SampleFields {
304305
pub key_expr: KeyExpr<'static>,
305306
pub payload: ZBytes,

0 commit comments

Comments
 (0)