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 ActivityButtonText
impl Send for ActivityButtonText
impl Sync for ActivityButtonText
impl Unpin for ActivityButtonText
impl UnwindSafe for ActivityButtonText
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