pub struct AlertModalProps {Show 13 fields
pub open: bool,
pub title: Line<'static>,
pub message: TextParagraph<'static>,
pub close_hint: Option<Line<'static>>,
pub close_keys: Vec<KeyCode>,
pub on_close: Handler<'static, ()>,
pub width: Constraint,
pub height: Constraint,
pub style: Option<Style>,
pub border_style: Option<Style>,
pub title_style: Option<Style>,
pub message_style: Option<Style>,
pub padding: Padding,
}Fields§
§open: bool§title: Line<'static>§message: TextParagraph<'static>§close_hint: Option<Line<'static>>§close_keys: Vec<KeyCode>§on_close: Handler<'static, ()>§width: Constraint§height: Constraint§style: Option<Style>§border_style: Option<Style>§title_style: Option<Style>§message_style: Option<Style>§padding: PaddingTrait Implementations§
Source§impl Default for AlertModalProps
impl Default for AlertModalProps
impl Props for AlertModalProps
Auto Trait Implementations§
impl !RefUnwindSafe for AlertModalProps
impl !Send for AlertModalProps
impl !Sync for AlertModalProps
impl !UnwindSafe for AlertModalProps
impl Freeze for AlertModalProps
impl Unpin for AlertModalProps
impl UnsafeUnpin for AlertModalProps
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> 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