pub struct AppendResult {
pub observation: Observation,
pub deduplicated: bool,
}Expand description
Outcome of Client::append_observation.
Carries the stored observation plus whether the daemon deduplicated the
write. deduplicated is true when an observation with the same id already
existed: observation is then the pre-existing stored row (the daemon did
not overwrite it or re-run masking), making spool replay exactly-once-ish on
id. When false, a new row was written and observation is it.
Fields§
§observation: ObservationThe stored observation. On a dedup hit this is the pre-existing row.
deduplicated: booltrue when the id already existed and the daemon ignored the write.
Trait Implementations§
Source§impl Clone for AppendResult
impl Clone for AppendResult
Source§fn clone(&self) -> AppendResult
fn clone(&self) -> AppendResult
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AppendResult
impl Debug for AppendResult
Source§impl PartialEq for AppendResult
impl PartialEq for AppendResult
Source§fn eq(&self, other: &AppendResult) -> bool
fn eq(&self, other: &AppendResult) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AppendResult
Auto Trait Implementations§
impl Freeze for AppendResult
impl RefUnwindSafe for AppendResult
impl Send for AppendResult
impl Sync for AppendResult
impl Unpin for AppendResult
impl UnsafeUnpin for AppendResult
impl UnwindSafe for AppendResult
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