Struct luks2::LuksJson[][src]

pub struct LuksJson {
    pub keyslots: HashMap<u8, LuksKeyslot>,
    pub tokens: HashMap<u8, LuksToken>,
    pub segments: HashMap<u8, LuksSegment>,
    pub digests: HashMap<u8, LuksDigest>,
    pub config: LuksConfig,
}
Expand description

JSON metadata for the device as described here.

Fields

keyslots: HashMap<u8, LuksKeyslot>

Objects describing encrypted keys storage areas.

tokens: HashMap<u8, LuksToken>

Tokens can optionally include additional metadata. Only included for parsing compatibility.

segments: HashMap<u8, LuksSegment>

Segments describe areas on disk that contain user encrypted data.

digests: HashMap<u8, LuksDigest>

Digests are used to verify that keys decrypted from keyslots are correct. Uses the keys of keyslots and segments to reference them.

config: LuksConfig

Persistent header configuration attributes.

Implementations

Attempt to read a LUKS2 JSON area from a reader. The reader must contain exactly the JSON data and nothing more.

Trait Implementations

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.