pub struct ClientRecord {
pub client_id: String,
pub is_active: bool,
pub permissions: Vec<String>,
pub rate_limit_rps: Option<u32>,
pub metadata: HashMap<String, String>,
}Expand description
Canonical client record stored in the control plane.
In the remote backend this is the JSON payload at
clients/by-key/{sha256(api_key)}.json.
Fields§
§client_id: StringUnique human-readable identifier (e.g. “acme”, “internal-tools”).
is_active: boolWhether the client is currently active. Inactive clients fail auth even if the key matches.
permissions: Vec<String>Granted permission strings (e.g. ["read", "write", "replay", "delete"]).
rate_limit_rps: Option<u32>Optional per-client rate limit (requests per second).
metadata: HashMap<String, String>Arbitrary key-value metadata.
Trait Implementations§
Source§impl Clone for ClientRecord
impl Clone for ClientRecord
Source§fn clone(&self) -> ClientRecord
fn clone(&self) -> ClientRecord
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ClientRecord
impl Debug for ClientRecord
Source§impl<'de> Deserialize<'de> for ClientRecord
impl<'de> Deserialize<'de> for ClientRecord
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ClientRecord
impl RefUnwindSafe for ClientRecord
impl Send for ClientRecord
impl Sync for ClientRecord
impl Unpin for ClientRecord
impl UnsafeUnpin for ClientRecord
impl UnwindSafe for ClientRecord
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more