Skip to main content

Detail

Enum Detail 

Source
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.

Fields

§decoded: Vec<u8>
§child: Box<Node>
§

Message

A protobuf message.

Fields

§fields: Vec<Field>
§

Der

DER-encoded ASN.1: one or more top-level elements.

Fields

§items: Vec<Asn1>
§

Values

CBOR or MessagePack: normally one top-level value; a sequence may have several when forced with --as cbor / --as msgpack.

Fields

§items: Vec<Value>
§

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.

Fields

§parts: Vec<Node>
§times: Vec<(&'static str, String)>
§

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

§text: String

The first TEXT_HEAD characters (all of a shorter text).

§len: usize

Byte length of the whole text; text is all of it when equal.

§

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.

Fields

§len: usize

Length of the whole leaf.

§head: Vec<u8>

Its first min(len, BYTES_HEAD) bytes.

Trait Implementations§

Source§

impl Clone for Detail

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Detail

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl PartialEq for Detail

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for Detail

Auto Trait Implementations§

§

impl Forget for Detail

§

impl Freeze for Detail

§

impl Move for Detail

§

impl RefUnwindSafe for Detail

§

impl Send for Detail

§

impl Sync for Detail

§

impl Unpin for Detail

§

impl UnsafeUnpin for Detail

§

impl UnwindSafe for Detail

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.