pub enum RawMode {
Off,
Record,
Field,
RecordRDW,
}Expand description
Raw data capture mode
Controls whether and how binary record data is captured in the output:
Off— no raw data (default, lowest overhead)Record— record payload inraw_b64and compatibility__raw_b64RecordRDW— RDW header plus record payload inraw_b64and compatibility__raw_b64Field— only per-field raw bytes in<FIELD_NAME>_raw_b64
Whole-record capture also emits raw_capture with record or record+rdw
so RDW replay does not infer framing from byte contents.
§Examples
use copybook_codec::options::RawMode;
let mode = RawMode::Off;
assert_eq!(mode, RawMode::Off);
let field_mode = RawMode::Field;
assert_ne!(field_mode, RawMode::Off);Variants§
Off
No raw data capture
Record
Capture record-level raw data
Field
Capture field-level raw data
RecordRDW
Capture record and RDW header
Trait Implementations§
impl Copy for RawMode
Source§impl<'de> Deserialize<'de> for RawMode
impl<'de> Deserialize<'de> for RawMode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for RawMode
impl StructuralPartialEq for RawMode
Auto Trait Implementations§
impl Freeze for RawMode
impl RefUnwindSafe for RawMode
impl Send for RawMode
impl Sync for RawMode
impl Unpin for RawMode
impl UnsafeUnpin for RawMode
impl UnwindSafe for RawMode
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,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.