pub struct AppendRepair {
pub consistent: bool,
pub safe: bool,
pub append: Vec<u8>,
}Expand description
Result of an append-only repair (for streaming passthrough, where already- emitted bytes cannot be retracted).
Fields§
§consistent: boolStructurally consistent so far. If false, pass the original through untouched.
safe: boolTrue if appending append to the already-emitted bytes yields valid JSON
WITHOUT dropping anything. False means append-only cannot fix the tail
(trailing comma, partial scalar/keyword, mid-escape, incomplete key, or a
truncated multibyte UTF-8 char) — the caller should skip this target.
append: Vec<u8>Bytes to append when safe (optional closing ‘“’ then container closers).
Implementations§
Trait Implementations§
Source§impl Clone for AppendRepair
impl Clone for AppendRepair
Source§fn clone(&self) -> AppendRepair
fn clone(&self) -> AppendRepair
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 AppendRepair
impl Debug for AppendRepair
impl Eq for AppendRepair
Source§impl PartialEq for AppendRepair
impl PartialEq for AppendRepair
Source§fn eq(&self, other: &AppendRepair) -> bool
fn eq(&self, other: &AppendRepair) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AppendRepair
Auto Trait Implementations§
impl Freeze for AppendRepair
impl RefUnwindSafe for AppendRepair
impl Send for AppendRepair
impl Sync for AppendRepair
impl Unpin for AppendRepair
impl UnsafeUnpin for AppendRepair
impl UnwindSafe for AppendRepair
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.