pub struct EditPayload {
pub user_key: String,
pub identifier: Option<String>,
pub auth_expire: i32,
pub note: Option<String>,
pub discord_id: Option<String>,
}
Expand description
The payload for editing an existing user.
Fields§
§user_key: String
Unique user_key to edit.
identifier: Option<String>
Identifier of the user to whitelist.
Could be a HWID.
auth_expire: i32
Unix timestamp (seconds) of expiry date.
If you don’t want it to expire, use negative one (-1) as value.
note: Option<String>
Custom note for client.
This might be easier to identify the user.
discord_id: Option<String>
Discord ID of the user.
If not specified, user won’t be able to resethwid on their own. They can still link their discord id to their key using /redeem command (if you configured the bot)
Trait Implementations§
Source§impl Clone for EditPayload
impl Clone for EditPayload
Source§fn clone(&self) -> EditPayload
fn clone(&self) -> EditPayload
Returns a copy 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 EditPayload
impl Debug for EditPayload
Source§impl Default for EditPayload
impl Default for EditPayload
Source§fn default() -> EditPayload
fn default() -> EditPayload
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for EditPayload
impl<'de> Deserialize<'de> for EditPayload
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 Hash for EditPayload
impl Hash for EditPayload
Source§impl Ord for EditPayload
impl Ord for EditPayload
Source§fn cmp(&self, other: &EditPayload) -> Ordering
fn cmp(&self, other: &EditPayload) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for EditPayload
impl PartialEq for EditPayload
Source§impl PartialOrd for EditPayload
impl PartialOrd for EditPayload
Source§impl Serialize for EditPayload
impl Serialize for EditPayload
impl Eq for EditPayload
impl StructuralPartialEq for EditPayload
Auto Trait Implementations§
impl Freeze for EditPayload
impl RefUnwindSafe for EditPayload
impl Send for EditPayload
impl Sync for EditPayload
impl Unpin for EditPayload
impl UnwindSafe for EditPayload
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.