pub struct ApiKey {
pub client_id: String,
pub client_secret: String,
pub default: bool,
pub enabled: Option<bool>,
pub enabled_features: Option<Vec<String>>,
pub id: i64,
pub ip_whitelist: Option<Vec<Value>>,
pub max_scope: String,
pub name: Option<String>,
pub public_key: Option<String>,
pub timestamp: i64,
}Fields§
§client_id: String§client_secret: String§default: bool§enabled: Option<bool>§enabled_features: Option<Vec<String>>§id: i64§ip_whitelist: Option<Vec<Value>>§max_scope: String§name: Option<String>§public_key: Option<String>§timestamp: i64Trait Implementations§
Source§impl<'de> Deserialize<'de> for ApiKey
impl<'de> Deserialize<'de> for ApiKey
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 StructuralPartialEq for ApiKey
Auto Trait Implementations§
impl Freeze for ApiKey
impl RefUnwindSafe for ApiKey
impl Send for ApiKey
impl Sync for ApiKey
impl Unpin for ApiKey
impl UnwindSafe for ApiKey
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