pub struct Key {
pub id: u64,
pub flags: KeyFlags,
pub usage: u32,
pub timeout: KeyTimeout,
pub permissions: Permissions,
pub uid: u32,
pub gid: Option<u32>,
pub key_type: KeyType,
pub description: String,
}
Expand description
A key
Fields§
§id: u64
The ID (serial number) of the key
flags: KeyFlags
A set of flags describing the state of the key
usage: u32
Count of the number of kernel credential structures that are pinning the key (approximately: the number of threads and open file references that refer to this key).
timeout: KeyTimeout
Key timeout
permissions: Permissions
Key permissions
uid: u32
The user ID of the key owner
gid: Option<u32>
The group ID of the key.
The value of None
here means that the key has no group ID; this can occur in certain circumstances for
keys created by the kernel.
key_type: KeyType
The type of key
description: String
The key description
Trait Implementations§
source§impl<'de> Deserialize<'de> for Key
impl<'de> Deserialize<'de> for Key
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more