pub struct UpdateApiKeyByIdRequest {
pub name: Option<String>,
pub scopes: Option<HashSet<Scopes>>,
pub expires_at: Option<Option<DateTime<FixedOffset>>>,
pub player_id: Option<Option<Uuid>>,
}Fields§
§name: Option<String>The human-readable name of the API key.
scopes: Option<HashSet<Scopes>>The scopes to grant to the 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§
Source§impl UpdateApiKeyByIdRequest
impl UpdateApiKeyByIdRequest
pub fn new() -> UpdateApiKeyByIdRequest
Trait Implementations§
Source§impl Clone for UpdateApiKeyByIdRequest
impl Clone for UpdateApiKeyByIdRequest
Source§fn clone(&self) -> UpdateApiKeyByIdRequest
fn clone(&self) -> UpdateApiKeyByIdRequest
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 UpdateApiKeyByIdRequest
impl Debug for UpdateApiKeyByIdRequest
Source§impl Default for UpdateApiKeyByIdRequest
impl Default for UpdateApiKeyByIdRequest
Source§fn default() -> UpdateApiKeyByIdRequest
fn default() -> UpdateApiKeyByIdRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UpdateApiKeyByIdRequest
impl<'de> Deserialize<'de> for UpdateApiKeyByIdRequest
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 UpdateApiKeyByIdRequest
impl PartialEq for UpdateApiKeyByIdRequest
Source§impl Serialize for UpdateApiKeyByIdRequest
impl Serialize for UpdateApiKeyByIdRequest
impl StructuralPartialEq for UpdateApiKeyByIdRequest
Auto Trait Implementations§
impl Freeze for UpdateApiKeyByIdRequest
impl RefUnwindSafe for UpdateApiKeyByIdRequest
impl Send for UpdateApiKeyByIdRequest
impl Sync for UpdateApiKeyByIdRequest
impl Unpin for UpdateApiKeyByIdRequest
impl UnsafeUnpin for UpdateApiKeyByIdRequest
impl UnwindSafe for UpdateApiKeyByIdRequest
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