Struct discord_sdk::activity::Assets [−][src]
pub struct Assets {
pub large_image: Option<String>,
pub large_text: Option<String>,
pub small_image: Option<String>,
pub small_text: Option<String>,
}
Expand description
The custom art assets to be used in the user’s profile when the activity is set. These assets need to be already uploaded to Discord in the application’s developer settings.
Fields
large_image: Option<String>
large_text: Option<String>
small_image: Option<String>
small_text: Option<String>
Implementations
Sets the large image and optional text to use for the rich presence profile
The key is limited to 32 bytes on the server, so any keys over that size will be considered invalid and won’t be set. The image text is limited to 128 bytes and will be truncated if longer than that.
Sets the small image and optional text to use for the rich presence profile
The key is limited to 32 bytes on the server, so any keys over that size will be considered invalid and won’t be set. The image text is limited to 128 bytes and will be truncated if longer than that.
Trait Implementations
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
Auto Trait Implementations
impl RefUnwindSafe for Assets
impl UnwindSafe for Assets
Blanket Implementations
Mutably borrows from an owned value. Read more
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