pub struct NewApiKeyRequest {
pub name: String,
}
Expand description
Request to create a new API key.
JSON schema
{
"description": "Request to create a new API key.",
"type": "object",
"required": [
"name"
],
"properties": {
"name": {
"description": "Key name.",
"examples": [
"my-api-key"
],
"type": "string"
}
}
}
Fields§
§name: String
Key name.
Implementations§
Source§impl NewApiKeyRequest
impl NewApiKeyRequest
pub fn builder() -> NewApiKeyRequest
Trait Implementations§
Source§impl Clone for NewApiKeyRequest
impl Clone for NewApiKeyRequest
Source§fn clone(&self) -> NewApiKeyRequest
fn clone(&self) -> NewApiKeyRequest
Returns a duplicate of the value. Read more
1.0.0 · 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 NewApiKeyRequest
impl Debug for NewApiKeyRequest
Source§impl<'de> Deserialize<'de> for NewApiKeyRequest
impl<'de> Deserialize<'de> for NewApiKeyRequest
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
Source§impl From<&NewApiKeyRequest> for NewApiKeyRequest
impl From<&NewApiKeyRequest> for NewApiKeyRequest
Source§fn from(value: &NewApiKeyRequest) -> Self
fn from(value: &NewApiKeyRequest) -> Self
Converts to this type from the input type.
Source§impl From<NewApiKeyRequest> for NewApiKeyRequest
impl From<NewApiKeyRequest> for NewApiKeyRequest
Source§fn from(value: NewApiKeyRequest) -> Self
fn from(value: NewApiKeyRequest) -> Self
Converts to this type from the input type.
Source§impl Serialize for NewApiKeyRequest
impl Serialize for NewApiKeyRequest
Source§impl TryFrom<NewApiKeyRequest> for NewApiKeyRequest
impl TryFrom<NewApiKeyRequest> for NewApiKeyRequest
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: NewApiKeyRequest) -> Result<Self, ConversionError>
fn try_from(value: NewApiKeyRequest) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for NewApiKeyRequest
impl RefUnwindSafe for NewApiKeyRequest
impl Send for NewApiKeyRequest
impl Sync for NewApiKeyRequest
impl Unpin for NewApiKeyRequest
impl UnwindSafe for NewApiKeyRequest
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