Struct twilight_model::gateway::presence::activity_button::ActivityButtonText [−][src]
pub struct ActivityButtonText {
pub label: String,
}Expand description
Button used in an activity without a URL.
serde
Textual activity buttons deserialize and serialize as a string. This means that a textual activity button with a label of “test” will serialize as simply the string “test” and vice versa.
ⓘ
use twilight_model::gateway::presence::activity_button::ActivityButtonText; assert_eq!( ActivityButtonText { label: "test".to_owned() }, serde_json::from_str(r#""test""#)?, );
Fields
label: StringText shown on the button.
Trait Implementations
Deserialize this value from the given Serde deserializer. Read more
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for ActivityButtonTextimpl Send for ActivityButtonTextimpl Sync for ActivityButtonTextimpl Unpin for ActivityButtonTextimpl UnwindSafe for ActivityButtonTextBlanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more