pub struct User {
pub id: UserId,
pub created_at: DateTime<Utc>,
pub first_name: Option<String>,
pub last_name: Option<String>,
pub email: Option<String>,
pub access_granted_at: Option<DateTime<Utc>>,
}Expand description
Represents the authenticated user’s profile information.
This model contains basic information about the user who authorized your application.
The availability of certain fields (such as email) depends on whether your application
has been granted the appropriate scopes (e.g., AKAHU scope for email access).
Fields§
§id: UserIdThe unique identifier for the user in the Akahu system.
created_at: DateTime<Utc>The timestamp when this user account was created.
This represents when the user first registered with Akahu.
first_name: Option<String>The user’s first name.
This is the first name the user provided when registering with Akahu.
last_name: Option<String>The user’s last name.
This is the last name the user provided when registering with Akahu.
email: Option<String>The user’s email address.
This is the email address the user used to register their Akahu account.
Note: This field is only visible if your application has been granted
the AKAHU scope, which provides access to the user’s profile information.
access_granted_at: Option<DateTime<Utc>>The timestamp when the user granted access to your application.
This represents when the user authorized your app through the OAuth flow.