pub trait JsonInput<'de>: Sealed {
// Required methods
fn need_utf8_valid(&self) -> bool;
fn to_json_slice(&self) -> JsonSlice<'de>;
fn from_subset(&self, sub: &'de [u8]) -> JsonSlice<'de>;
fn to_u8_slice(&self) -> &'de [u8] ⓘ;
}
Expand description
A trait for string/bytes-like types that can be parsed into JSON.