Struct discord_rpc_sdk::RichPresence [] [src]

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.

Fields

The user's current party status. Maximum of 128 bytes.

For example: "Looking to Play", "Playing Solo", "In a Group"...

What the player is currently doing. Maximum of 128 bytes.

For example: "Competitive - Captain's Mode", "In Queue", "Unranked PvP"...

Time of game start. Including will show time as "elapsed".

Time of game end. Including will show time as "remaining".

Name of the uploaded image for the large profile artwork. Maximum of 32 bytes.

Tooltip for the large image. Maximum of 128 bytes.

Name of the uploaded image for the large profile artwork. Maximum of 32 bytes.

Tooltip for the large image. Maximum of 128 bytes.

ID of the player's party, lobby, or group. Maximum of 128 bytes.

Current size of the player's party, lobby, or group.

Maximum size of the player's party, lobby, or group.

Unique hashed string for Spectate button. Maximum of 128 bytes.

Unique hashed string for chat invitations and Ask to Join. Maximum of 128 bytes.

Trait Implementations

impl Default for RichPresence
[src]

[src]

Returns the "default value" for a type. Read more

impl Clone for RichPresence
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Hash for RichPresence
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

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

impl PartialEq for RichPresence
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Debug for RichPresence
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for RichPresence

impl Sync for RichPresence