[−][src]Struct rustcord::RichPresence
Defines the data displayed on the rich presence screen on a user's profile. Due to the C API limits, this data is limited to a maximum amount of bytes will be listed below
Fields
state: Option<String>
The user's current party status. Maximum of 128 bytes.
details: Option<String>
What the player is currently doing. Maximum of 128 bytes.
start_time: Option<SystemTime>
Time of game start. Including will show time as "elapsed".
end_time: Option<SystemTime>
Time of game end. Including will show time as "remaining".
large_image_key: Option<String>
Name of the uploaded image for the large profile artwork. Maximum of 32 bytes.
large_image_text: Option<String>
Tooltip for the large image. Maximum of 128 bytes.
small_image_key: Option<String>
Name of the uploaded image for the large profile artwork. Maximum of 32 bytes.
small_image_text: Option<String>
Tooltip for the large image. Maximum of 128 bytes.
party_id: Option<String>
ID of the player's party, lobby, or group. Maximum of 128 bytes.
party_size: Option<u32>
Current size of the player's party, lobby, or group.
party_max: Option<u32>
Maximum size of the player's party, lobby, or group.
spectate_secret: Option<String>
Unique hashed string for Spectate button. Maximum of 128 bytes.
join_secret: Option<String>
Unique hashed string for chat invitations and Ask to Join. Maximum of 128 bytes.
Trait Implementations
impl Clone for RichPresence
[src]
fn clone(&self) -> RichPresence
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Default for RichPresence
[src]
fn default() -> RichPresence
[src]
impl PartialEq<RichPresence> for RichPresence
[src]
fn eq(&self, other: &RichPresence) -> bool
[src]
fn ne(&self, other: &RichPresence) -> bool
[src]
impl Debug for RichPresence
[src]
impl Hash for RichPresence
[src]
Auto Trait Implementations
impl Send for RichPresence
impl Sync for RichPresence
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> From for T
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,