Struct twilight_http::request::channel::reaction::RequestReactionTypeDisplay [−][src]
pub struct RequestReactionTypeDisplay<'a>(_);Expand description
Format a RequestReactionType into a format acceptable for use in URLs.
Examples
Format a custom reaction for use in a URL:
use twilight_http::request::channel::reaction::RequestReactionType;
use twilight_model::id::EmojiId;
let reaction = RequestReactionType::Custom {
id: EmojiId::new(123).expect("non zero"),
name: Some("rarity"),
};
// Retrieve the display formatter.
let display = reaction.display();
// And now format it into an acceptable string and then check it.
assert_eq!("rarity:123", display.to_string());Trait Implementations
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<'a> RefUnwindSafe for RequestReactionTypeDisplay<'a>
impl<'a> Send for RequestReactionTypeDisplay<'a>
impl<'a> Sync for RequestReactionTypeDisplay<'a>
impl<'a> Unpin for RequestReactionTypeDisplay<'a>
impl<'a> UnwindSafe for RequestReactionTypeDisplay<'a>
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key and return true if they are equal.
pub fn vzip(self) -> V
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