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§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 Forget for ClientRecord
impl Freeze for ClientRecordwhere
*const u8 is !null: Freeze,
PhantomData<u8>: Freeze,
PhantomData<String>: Freeze,
PhantomData<(String, String)>: Freeze,
impl Move for ClientRecord
impl RefUnwindSafe for ClientRecord
impl Send for ClientRecord
impl Sync for ClientRecord
impl Unpin for ClientRecord
impl UnsafeUnpin for ClientRecordwhere
*const u8 is !null: UnsafeUnpin,
PhantomData<u8>: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<(String, String)>: UnsafeUnpin,
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