artisan_middleware 5.7.1

The main services of the artisan platform to allow communication and management of linux system services
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use serde::{Deserialize, Serialize};

/// Response for token operations, including both access and refresh tokens
#[derive(Debug, Serialize, Deserialize)]
pub struct TokenResponse {
    pub access_token: String,
    pub refresh_token: String,
    pub expires_in: usize,
    pub refresh_expires_in: usize,
}

#[derive(Debug, Deserialize)]
pub struct SimpleLoginRequest {
    pub email: String,
    pub password: String,
}