Struct luks2::LuksConfig[][src]

pub struct LuksConfig {
    pub json_size: u64,
    pub keyslots_size: u64,
    pub flags: Option<Vec<String>>,
    pub requirements: Option<Vec<String>>,
}
Expand description

Global attributes for the LUKS device.

Fields

json_size: u64

The JSON area size in bytes. Must match the binary header.

keyslots_size: u64

The binary keyslot area size in bytes. Must be aligned to 4096 bytes.

flags: Option<Vec<String>>

An optional list of persistent flags for the device.

requirements: Option<Vec<String>>

An optional list of additional required featers for the LUKS device.

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.