pub struct CreateApiKeyRequest {
pub name: String,
pub scopes: HashSet<Scopes>,
pub expires_at: Option<Option<DateTime<FixedOffset>>>,
pub player_id: Option<Option<Uuid>>,
}Fields§
§name: StringThe human-readable name of the API key.
scopes: HashSet<Scopes>The scopes required for the new API key. The API key used to make the request must be authorized to delegate each requested scope.
expires_at: Option<Option<DateTime<FixedOffset>>>The date and time at which the API key expires, or null if it does not expire.
player_id: Option<Option<Uuid>>The player linked to this API key, or null if the key is not linked to a player.
Implementations§
Trait Implementations§
Source§impl Clone for CreateApiKeyRequest
impl Clone for CreateApiKeyRequest
Source§fn clone(&self) -> CreateApiKeyRequest
fn clone(&self) -> CreateApiKeyRequest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CreateApiKeyRequest
impl Debug for CreateApiKeyRequest
Source§impl Default for CreateApiKeyRequest
impl Default for CreateApiKeyRequest
Source§fn default() -> CreateApiKeyRequest
fn default() -> CreateApiKeyRequest
Returns the “default value” for a type. Read more
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
Source§impl PartialEq for CreateApiKeyRequest
impl PartialEq for CreateApiKeyRequest
Source§impl Serialize for CreateApiKeyRequest
impl Serialize for CreateApiKeyRequest
impl StructuralPartialEq for CreateApiKeyRequest
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