[][src]Struct rustcord::RichPresence

pub struct RichPresence {
    pub state: Option<String>,
    pub details: Option<String>,
    pub start_time: Option<SystemTime>,
    pub end_time: Option<SystemTime>,
    pub large_image_key: Option<String>,
    pub large_image_text: Option<String>,
    pub small_image_key: Option<String>,
    pub small_image_text: Option<String>,
    pub party_id: Option<String>,
    pub party_size: Option<u32>,
    pub party_max: Option<u32>,
    pub spectate_secret: Option<String>,
    pub join_secret: Option<String>,
}

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_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl Default for RichPresence[src]

impl PartialEq<RichPresence> for RichPresence[src]

impl Debug for RichPresence[src]

impl Hash for RichPresence[src]

fn hash_slice<H>(data: &[Self], state: &mut H) where
    H: Hasher
1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Any for T where
    T: 'static + ?Sized
[src]