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<ApiKeyPermissions>>,
pub metadata: Option<JsValue>,
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<ApiKeyPermissions>>Replacement resource permissions; null clears permissions. Server callers only.
metadata: Option<JsValue>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.
Trait Implementations§
Source§impl Debug for UpdateKeyRequest
impl Debug for UpdateKeyRequest
Source§impl Default for UpdateKeyRequest
impl Default for UpdateKeyRequest
Source§impl<'de> Deserialize<'de> for UpdateKeyRequest
impl<'de> Deserialize<'de> for UpdateKeyRequest
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>,
Source§impl Serialize for UpdateKeyRequest
impl Serialize for UpdateKeyRequest
Source§impl Validate for UpdateKeyRequest
impl Validate for UpdateKeyRequest
Auto Trait Implementations§
impl Freeze for UpdateKeyRequest
impl RefUnwindSafe for UpdateKeyRequest
impl Send for UpdateKeyRequest
impl Sync for UpdateKeyRequest
impl Unpin for UpdateKeyRequest
impl UnsafeUnpin for UpdateKeyRequest
impl UnwindSafe for UpdateKeyRequest
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more