pub struct CreateApiKeyRequest {
pub name: String,
pub role: Option<Role>,
pub expires_in_days: Option<i64>,
pub tenant_id: Option<String>,
}Fields§
§name: String§role: Option<Role>§expires_in_days: Option<i64>§tenant_id: Option<String>Admin override: create the key for a specific tenant instead of the caller’s tenant. Only honoured when the caller has Admin permission; ignored otherwise.
Trait Implementations§
Source§impl Debug for CreateApiKeyRequest
impl Debug for CreateApiKeyRequest
Source§impl<'de> Deserialize<'de> for CreateApiKeyRequest
impl<'de> Deserialize<'de> for CreateApiKeyRequest
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 CreateApiKeyRequest
impl RefUnwindSafe for CreateApiKeyRequest
impl Send for CreateApiKeyRequest
impl Sync for CreateApiKeyRequest
impl Unpin for CreateApiKeyRequest
impl UnsafeUnpin for CreateApiKeyRequest
impl UnwindSafe for CreateApiKeyRequest
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