pub struct SlashPopupConfig {
pub header_text: String,
pub no_matches_message: String,
pub command_prefix: String,
pub description_indent: String,
}Expand description
Configuration for SlashPopup widget
Fields§
§header_text: StringHeader text shown at top of popup
no_matches_message: StringMessage when no commands match the filter
command_prefix: StringPrefix shown before command names
description_indent: StringIndent for description lines
Implementations§
Source§impl SlashPopupConfig
impl SlashPopupConfig
Sourcepub fn with_header_text(self, text: impl Into<String>) -> Self
pub fn with_header_text(self, text: impl Into<String>) -> Self
Set the header text
Sourcepub fn with_no_matches_message(self, message: impl Into<String>) -> Self
pub fn with_no_matches_message(self, message: impl Into<String>) -> Self
Set the no matches message
Sourcepub fn with_command_prefix(self, prefix: impl Into<String>) -> Self
pub fn with_command_prefix(self, prefix: impl Into<String>) -> Self
Set the command prefix
Trait Implementations§
Source§impl Clone for SlashPopupConfig
impl Clone for SlashPopupConfig
Source§fn clone(&self) -> SlashPopupConfig
fn clone(&self) -> SlashPopupConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SlashPopupConfig
impl RefUnwindSafe for SlashPopupConfig
impl Send for SlashPopupConfig
impl Sync for SlashPopupConfig
impl Unpin for SlashPopupConfig
impl UnwindSafe for SlashPopupConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more