pub struct User {
Show 16 fields pub id: u64, pub status: Option<u64>, pub login: String, pub admin: bool, pub firstname: String, pub lastname: String, pub mail: Option<String>, pub api_key: Option<String>, pub twofa_scheme: Option<String>, pub created_on: OffsetDateTime, pub updated_on: OffsetDateTime, pub passwd_changed_on: Option<OffsetDateTime>, pub last_login_on: Option<OffsetDateTime>, pub custom_fields: Option<Vec<CustomFieldEssentialsWithValue>>, pub groups: Option<Vec<GroupEssentials>>, pub memberships: Option<Vec<UserProjectMembership>>, /* private fields */
}
Expand description

a type for user to use as an API return type

alternatively you can use your own type limited to the fields you need

Fields

id: u64

numeric id

status: Option<u64>

user status (seemingly numeric here, unlike filters)

TODO: turn this into the Enum UserStatus?

login: String

login name

admin: bool

is this user an admin

firstname: String

user’s firstname

lastname: String

user’s lastname

mail: Option<String>

primary email of the user

api_key: Option<String>

the user’s API key

twofa_scheme: Option<String>

user’s 2FA scheme

created_on: OffsetDateTime

The time when this user was created

updated_on: OffsetDateTime

The time when this user was last updated

passwd_changed_on: Option<OffsetDateTime>

The time when this user’s password was last changed

last_login_on: Option<OffsetDateTime>

the time when this user last logged in

custom_fields: Option<Vec<CustomFieldEssentialsWithValue>>

custom fields with values

groups: Option<Vec<GroupEssentials>>

groups (only if include is specified)

memberships: Option<Vec<UserProjectMembership>>

memberships (only if include is specified)

Trait Implementations

Formats the value using the given formatter. Read more

Deserialize this value from the given Serde deserializer. Read more

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.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

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.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more