pub enum ResponseFormat {
Json,
Hex,
LabeledHex,
}Expand description
The output format explicitly requested by the caller’s CLI command.
Variants§
Json
An object containing a top-level string response_bytes of compact hex.
Unknown fields are ignored; a missing or null field is rejected. Empty
hex represents empty bytes. Duplicate response_bytes fields are rejected.
Hex
Nonempty hex, permitting ASCII space, tab, CR, LF and form feed between
any two digits (Rust’s is_ascii_whitespace set).
LabeledHex
An exact response (hex): prefix followed by nonempty whitespace-tolerant
hex. Leading ASCII whitespace is permitted; preambles and repeated labels
are rejected rather than discarded.
Trait Implementations§
Source§impl Clone for ResponseFormat
impl Clone for ResponseFormat
impl Copy for ResponseFormat
Source§impl Debug for ResponseFormat
impl Debug for ResponseFormat
impl Eq for ResponseFormat
Source§impl PartialEq for ResponseFormat
impl PartialEq for ResponseFormat
impl StructuralPartialEq for ResponseFormat
Auto Trait Implementations§
impl Freeze for ResponseFormat
impl RefUnwindSafe for ResponseFormat
impl Send for ResponseFormat
impl Sync for ResponseFormat
impl Unpin for ResponseFormat
impl UnsafeUnpin for ResponseFormat
impl UnwindSafe for ResponseFormat
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