pub struct MessageBuilder { /* private fields */ }
Implementations§
Source§impl MessageBuilder
impl MessageBuilder
pub fn builder(payload: Payload) -> Self
pub fn color(self, color: Color) -> Self
pub fn insertion(self, insertion: &str) -> Self
pub fn bold(self, value: bool) -> Self
pub fn italic(self, value: bool) -> Self
pub fn underlined(self, value: bool) -> Self
pub fn strikethrough(self, value: bool) -> Self
pub fn obfuscated(self, value: bool) -> Self
pub fn click_open_url(self, value: &str) -> Self
pub fn click_run_command(self, value: &str) -> Self
pub fn click_suggest_command(self, value: &str) -> Self
pub fn click_change_page(self, value: &str) -> Self
pub fn hover_show_text(self, value: &str) -> Self
pub fn hover_show_item(self, value: &str) -> Self
pub fn hover_show_entity(self, value: &str) -> Self
pub fn then(self, payload: Payload) -> Self
pub fn build(self) -> Message
Auto Trait Implementations§
impl Freeze for MessageBuilder
impl RefUnwindSafe for MessageBuilder
impl Send for MessageBuilder
impl Sync for MessageBuilder
impl Unpin for MessageBuilder
impl UnwindSafe for MessageBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more