pub struct ApiKeyView {Show 21 fields
pub id: String,
pub name: Option<String>,
pub start: Option<String>,
pub prefix: Option<String>,
pub reference_id: String,
pub config_id: String,
pub refill_interval: Option<f64>,
pub refill_amount: Option<f64>,
pub last_refill_at: Option<String>,
pub enabled: bool,
pub rate_limit_enabled: bool,
pub rate_limit_time_window: Option<f64>,
pub rate_limit_max: Option<f64>,
pub request_count: Option<f64>,
pub remaining: Option<f64>,
pub last_request: Option<String>,
pub expires_at: Option<String>,
pub created_at: String,
pub updated_at: String,
pub permissions: Option<Value>,
pub metadata: Option<Value>,
}Expand description
Public API key response shape.
Intentionally omits key_hash — the hashed key value is never returned
over the wire (matches upstream TS behavior).
Fields§
§id: String§name: Option<String>§start: Option<String>§prefix: Option<String>§reference_id: String§config_id: String§refill_interval: Option<f64>§refill_amount: Option<f64>§last_refill_at: Option<String>§enabled: bool§rate_limit_enabled: bool§rate_limit_time_window: Option<f64>§rate_limit_max: Option<f64>§request_count: Option<f64>§remaining: Option<f64>§last_request: Option<String>§expires_at: Option<String>§created_at: String§updated_at: String§permissions: Option<Value>§metadata: Option<Value>Trait Implementations§
Source§impl Clone for ApiKeyView
impl Clone for ApiKeyView
Source§fn clone(&self) -> ApiKeyView
fn clone(&self) -> ApiKeyView
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ApiKeyView
impl Debug for ApiKeyView
Source§impl<'de> Deserialize<'de> for ApiKeyView
impl<'de> Deserialize<'de> for ApiKeyView
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ApiKeyView, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ApiKeyView, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl<T> From<&T> for ApiKeyViewwhere
T: AuthApiKey,
impl<T> From<&T> for ApiKeyViewwhere
T: AuthApiKey,
Source§fn from(ak: &T) -> ApiKeyView
fn from(ak: &T) -> ApiKeyView
Converts to this type from the input type.
Source§impl PartialEq for ApiKeyView
impl PartialEq for ApiKeyView
Source§impl Serialize for ApiKeyView
impl Serialize for ApiKeyView
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ApiKeyView
Auto Trait Implementations§
impl Freeze for ApiKeyView
impl RefUnwindSafe for ApiKeyView
impl Send for ApiKeyView
impl Sync for ApiKeyView
impl Unpin for ApiKeyView
impl UnsafeUnpin for ApiKeyView
impl UnwindSafe for ApiKeyView
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
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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> ⓘ
Converts
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> ⓘ
Converts
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