Expand description
This crate provides an API to access the systemd userdb API
Structs§
- Fido2
Hmac Salt - Authentication support with FIDO2 devices that implement the hmac-secret extension
- Group
Binding - Group
PerMachine - Resource management-related fields
- Group
Privileged - Group
Record - Group Records
- Group
Record Filter - Secondary search filter for group record lookups.
- Group
Secret - Currently no fields are defined in this section for group records.
- Group
Signature - Contains one or more cryptographic signatures of a reduced version of the group record.
- Group
Status - Membership
- The membership of a user or group
- Pkcs11
Encrypted Key - The
EncryptedKeyfor PKCS#11 - Recovery
Key - Recovery keys for the user account
- Resource
Limit - A Linux resource limit with soft and hard values.
- User
Binding - The binding section overrides their equally named counterparts in the regular and perMachine sections.
- User
PerMachine - Resource management-related fields
- User
Privileged - Contains information that the user and the administrator should be able to see, but other users should not.
- User
Record - User Records
- User
Record Filter - Secondary search filter for user record lookups.
- User
Secret - Secret user credentials, such as password or PIN information.
- User
Signature - Contains one or more cryptographic signatures of a reduced version of the user record.
- User
Status - Contains information about current runtime resource usage.
Enums§
- Auto
Resize Mode - Controls whether the home area shall be grown automatically
- Error
- This type represents all possible errors that can occur when dealing with records
- Group
Disposition - Disposition of the group, i.e. the context it is defined in.
- User
Disposition - Disposition of the user, i.e. the context it is defined in.
- User
Home Storage - Indicates the storage mechanism for the user’s home directory.
Traits§
- Validate
- Trait for validating record types.
Functions§
- get_
group_ record - The method looks up or enumerates a group record.
- get_
group_ record_ as - The method looks up or enumerates a group record with a custom type.
- get_
group_ record_ from_ json - Parses a JSON string into a
GroupRecord. - get_
group_ record_ from_ json_ as - Parses a JSON string into a custom group record type.
- get_
membership_ from_ json - Parses a JSON string into a
Membership. - get_
memberships - The method call may be used to inquire about group memberships.
- get_
user_ record - The method looks up or enumerates a user record.
- get_
user_ record_ as - The method looks up or enumerates a user record with a custom type.
- get_
user_ record_ from_ json - Parses a JSON string into a
UserRecord. - get_
user_ record_ from_ json_ as - Parses a JSON string into a custom user record type.