Can create read only clients
This commit is contained in:
@ -49,6 +49,9 @@ pub struct APIClient {
|
||||
|
||||
/// Client last usage time
|
||||
pub used: u64,
|
||||
|
||||
/// Read only access
|
||||
pub readonly_client: bool,
|
||||
}
|
||||
|
||||
impl APIClient {
|
||||
@ -71,6 +74,7 @@ impl APIClient {
|
||||
secret: rand_str(TOKEN_LEN),
|
||||
created: curr_time().unwrap(),
|
||||
used: curr_time().unwrap(),
|
||||
readonly_client: true,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user