[][src]Struct luks2::LuksJson

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,
}

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

impl LuksJson[src]

pub fn read_from<R: Read>(mut reader: &mut R) -> Result<Self, ParseError>[src]

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

Trait Implementations

impl Debug for LuksJson[src]

impl<'de> Deserialize<'de> for LuksJson[src]

impl PartialEq<LuksJson> for LuksJson[src]

impl Serialize for LuksJson[src]

impl StructuralPartialEq for LuksJson[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.