pub enum Detail {
Layer {
decoded: Vec<u8>,
child: Box<Node>,
},
Message {
fields: Vec<Field>,
},
Der {
items: Vec<Asn1>,
},
Values {
items: Vec<Value>,
},
Parts {
parts: Vec<Node>,
times: Vec<(&'static str, String)>,
},
Text {
text: String,
len: usize,
},
Bytes {
len: usize,
head: Vec<u8>,
},
}Variants§
Layer
A text encoding (hex/base64/PEM); child describes the decoded bytes.
Message
A protobuf message.
Der
DER-encoded ASN.1: one or more top-level elements.
Values
CBOR or MessagePack: normally one top-level value; a sequence may have
several when forced with --as cbor / --as msgpack.
Parts
A JWT or a PEM bundle: one node per part (base64 segments, or PEM
blocks). times is Detail::Parts’ only JWT-specific field: the
top-level time claims of a JWS payload (exp, nbf, iat), in that
order, as (claim, ISO-8601 UTC); it is empty for bundles.
Text
Printable UTF-8 text. Only the first TEXT_HEAD characters are kept
(what the JSON shows): the full text is the parent’s bytes, so a large
text is not stored twice.
Fields
Bytes
Opaque bytes (nothing more specific was found, or the format is not
supported). Only the first BYTES_HEAD bytes are kept, for the
preview: the full bytes are the parent’s (the input, a layer’s
decoded, a field’s or value’s data), so a large leaf is not stored twice.