Struct discord_sdk::activity::ActivityBuilder[][src]

pub struct ActivityBuilder { /* fields omitted */ }

Implementations

The user’s currenty party status, eg. “Playing Solo”.

Limited to 128 bytes.

What the player is doing, eg. “Exploring the Wilds of Outland”.

Limited to 128 bytes.

Set the start timestamp for the activity. If only the start is set, Discord will display XX:XX elapsed

Set the end timestamp for the activity. If only the end is set, Discord will display XX:XX left

The start and end of a “game” or “session”.

The image assets to use for the rich presence profile

Sets party details such as size and whether it can be joined by others.

Note that the party size will only be set if both size and max are provided, and that the party id is limited to 128 bytes.

Whether this activity is an instanced context, like a match

Sets secrets, allowing other player’s to join or spectate the player’s game

Trait Implementations

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more