pub struct StaticApiKeyEntry {
pub key_hash: String,
pub scopes: Vec<String>,
pub name: String,
}Expand description
A single static API key entry.
Fields§
§key_hash: StringHex-encoded hash, optionally prefixed with the algorithm (sha256:…).
scopes: Vec<String>OAuth-style scopes granted by this key.
name: StringHuman-readable name (for audit logging).
Trait Implementations§
Source§impl Clone for StaticApiKeyEntry
impl Clone for StaticApiKeyEntry
Source§impl Debug for StaticApiKeyEntry
impl Debug for StaticApiKeyEntry
Source§impl<'de> Deserialize<'de> for StaticApiKeyEntry
impl<'de> Deserialize<'de> for StaticApiKeyEntry
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
impl Eq for StaticApiKeyEntry
Source§impl PartialEq for StaticApiKeyEntry
impl PartialEq for StaticApiKeyEntry
Source§impl Serialize for StaticApiKeyEntry
impl Serialize for StaticApiKeyEntry
impl StructuralPartialEq for StaticApiKeyEntry
Auto Trait Implementations§
impl Freeze for StaticApiKeyEntry
impl RefUnwindSafe for StaticApiKeyEntry
impl Send for StaticApiKeyEntry
impl Sync for StaticApiKeyEntry
impl Unpin for StaticApiKeyEntry
impl UnsafeUnpin for StaticApiKeyEntry
impl UnwindSafe for StaticApiKeyEntry
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
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>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.