#[repr(C)]pub struct moq_json_config {
pub delta_ratio: u32,
pub compression: bool,
}Expand description
Options for a JSON snapshot track (lossy latest-value mode).
The same config is passed to a producer and its consumers, but the consumer reads only
compression; delta_ratio is producer-only.
Fields§
§delta_ratio: u32How aggressively the producer emits deltas instead of full snapshots. 0 disables deltas
(one snapshot per group); a positive value allows roughly that many snapshots’ worth of
deltas before rolling. Ignored by the consumer.
compression: boolDEFLATE-compress each group. Must match on the producer and consumer.
Auto Trait Implementations§
impl Freeze for moq_json_config
impl RefUnwindSafe for moq_json_config
impl Send for moq_json_config
impl Sync for moq_json_config
impl Unpin for moq_json_config
impl UnsafeUnpin for moq_json_config
impl UnwindSafe for moq_json_config
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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