pub struct CreateApiKey201Response {
pub name: String,
pub public_id: String,
pub scopes: HashSet<Scopes>,
pub created_at: DateTime<FixedOffset>,
pub expires_at: Option<DateTime<FixedOffset>>,
pub player_id: Option<Uuid>,
pub api_key: String,
}Fields§
§name: StringThe human-readable name of the API key.
public_id: StringThe public identifier of the API key.
scopes: HashSet<Scopes>The scopes granted to the API key.
created_at: DateTime<FixedOffset>The date and time at which the API key was created.
expires_at: Option<DateTime<FixedOffset>>The date and time at which the API key expires, or null if it does not expire.
player_id: Option<Uuid>The player linked to this API key, or null if the key is not linked to a player.
api_key: StringThe generated API key. This value is returned only once and must be stored securely by the client.
Implementations§
Source§impl CreateApiKey201Response
impl CreateApiKey201Response
pub fn new( name: String, public_id: String, scopes: HashSet<Scopes>, created_at: DateTime<FixedOffset>, expires_at: Option<DateTime<FixedOffset>>, player_id: Option<Uuid>, api_key: String, ) -> CreateApiKey201Response
Trait Implementations§
Source§impl Clone for CreateApiKey201Response
impl Clone for CreateApiKey201Response
Source§fn clone(&self) -> CreateApiKey201Response
fn clone(&self) -> CreateApiKey201Response
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 CreateApiKey201Response
impl Debug for CreateApiKey201Response
Source§impl Default for CreateApiKey201Response
impl Default for CreateApiKey201Response
Source§fn default() -> CreateApiKey201Response
fn default() -> CreateApiKey201Response
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for CreateApiKey201Response
impl<'de> Deserialize<'de> for CreateApiKey201Response
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 CreateApiKey201Response
impl PartialEq for CreateApiKey201Response
Source§impl Serialize for CreateApiKey201Response
impl Serialize for CreateApiKey201Response
impl StructuralPartialEq for CreateApiKey201Response
Auto Trait Implementations§
impl Freeze for CreateApiKey201Response
impl RefUnwindSafe for CreateApiKey201Response
impl Send for CreateApiKey201Response
impl Sync for CreateApiKey201Response
impl Unpin for CreateApiKey201Response
impl UnsafeUnpin for CreateApiKey201Response
impl UnwindSafe for CreateApiKey201Response
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