pub struct UpdateKeyRequest {Show 14 fields
pub config_id: Option<String>,
pub key_id: String,
pub user_id: Option<String>,
pub name: Option<String>,
pub enabled: Option<bool>,
pub remaining: Option<f64>,
pub rate_limit_enabled: Option<bool>,
pub rate_limit_time_window: Option<f64>,
pub rate_limit_max: Option<f64>,
pub refill_interval: Option<f64>,
pub refill_amount: Option<f64>,
pub permissions: Option<Option<HashMap<String, Vec<String>>>>,
pub metadata: Option<Value>,
pub expires_in: Option<Option<f64>>,
}Expand description
API key updates for HTTP and trusted server callers.
Fields§
§config_id: Option<String>Configuration used to locate the key.
key_id: StringIdentifier of the key to update.
user_id: Option<String>User authorizing a server-side update, or the current session user over HTTP.
name: Option<String>Replacement display name.
enabled: Option<bool>Whether the key can authenticate requests.
remaining: Option<f64>Replacement remaining uses, available only to server callers.
rate_limit_enabled: Option<bool>Enable rate limiting, available only to server callers.
rate_limit_time_window: Option<f64>Replacement rate limit window in milliseconds, available only to server callers.
rate_limit_max: Option<f64>Replacement requests per window, available only to server callers.
refill_interval: Option<f64>Replacement refill interval in milliseconds, available only to server callers.
refill_amount: Option<f64>Replacement uses per refill, available only to server callers.
permissions: Option<Option<HashMap<String, Vec<String>>>>Replacement resource permissions; null clears permissions. Server callers only.
metadata: Option<Value>Replacement metadata; null clears metadata when metadata is enabled.
expires_in: Option<Option<f64>>Absent leaves expiration unchanged, null clears expiration, and a value sets seconds from now.