pub struct NewApiKey {
pub id: String,
pub key: String,
pub tenant: String,
pub role: TenantRole,
}Expand description
A freshly created key; key is shown only this once.
Fields§
§id: String§key: String§tenant: String§role: TenantRoleTrait Implementations§
Source§impl<'de> Deserialize<'de> for NewApiKey
impl<'de> Deserialize<'de> for NewApiKey
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
Auto Trait Implementations§
impl Freeze for NewApiKey
impl RefUnwindSafe for NewApiKey
impl Send for NewApiKey
impl Sync for NewApiKey
impl Unpin for NewApiKey
impl UnsafeUnpin for NewApiKey
impl UnwindSafe for NewApiKey
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