pub struct UpdatePlayerByIdRequest {
pub discord_id: Option<Option<String>>,
pub status: Option<Status>,
pub current_server: Option<Option<String>>,
pub bio: Option<Option<String>>,
}Fields§
§discord_id: Option<Option<String>>The Discord user ID linked to the player, or null if no Discord account is linked or the API key lacks the players:read-details scope.
status: Option<Status>The online status of the player.
current_server: Option<Option<String>>The server to which the player is currently connected, or null if the player is offline.
bio: Option<Option<String>>The player’s biography of up to 160 characters, or null if it is not set.
Implementations§
Source§impl UpdatePlayerByIdRequest
impl UpdatePlayerByIdRequest
pub fn new() -> UpdatePlayerByIdRequest
Trait Implementations§
Source§impl Clone for UpdatePlayerByIdRequest
impl Clone for UpdatePlayerByIdRequest
Source§fn clone(&self) -> UpdatePlayerByIdRequest
fn clone(&self) -> UpdatePlayerByIdRequest
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 UpdatePlayerByIdRequest
impl Debug for UpdatePlayerByIdRequest
Source§impl Default for UpdatePlayerByIdRequest
impl Default for UpdatePlayerByIdRequest
Source§fn default() -> UpdatePlayerByIdRequest
fn default() -> UpdatePlayerByIdRequest
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for UpdatePlayerByIdRequest
impl<'de> Deserialize<'de> for UpdatePlayerByIdRequest
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 UpdatePlayerByIdRequest
impl PartialEq for UpdatePlayerByIdRequest
Source§impl Serialize for UpdatePlayerByIdRequest
impl Serialize for UpdatePlayerByIdRequest
impl StructuralPartialEq for UpdatePlayerByIdRequest
Auto Trait Implementations§
impl Freeze for UpdatePlayerByIdRequest
impl RefUnwindSafe for UpdatePlayerByIdRequest
impl Send for UpdatePlayerByIdRequest
impl Sync for UpdatePlayerByIdRequest
impl Unpin for UpdatePlayerByIdRequest
impl UnsafeUnpin for UpdatePlayerByIdRequest
impl UnwindSafe for UpdatePlayerByIdRequest
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