pub struct ConfirmModalProps {Show 15 fields
pub open: bool,
pub title: Line<'static>,
pub content: TextParagraph<'static>,
pub confirm_text: String,
pub cancel_text: String,
pub on_confirm: Handler<'static, ()>,
pub on_cancel: Handler<'static, ()>,
pub width: Constraint,
pub height: Constraint,
pub style: Option<Style>,
pub border_style: Option<Style>,
pub title_style: Option<Style>,
pub content_style: Option<Style>,
pub button_style: Option<Style>,
pub selected_button_style: Option<Style>,
}Fields§
§open: bool§title: Line<'static>§content: TextParagraph<'static>§confirm_text: String§cancel_text: String§on_confirm: Handler<'static, ()>§on_cancel: Handler<'static, ()>§width: Constraint§height: Constraint§style: Option<Style>§border_style: Option<Style>§title_style: Option<Style>§content_style: Option<Style>Trait Implementations§
Source§impl Default for ConfirmModalProps
impl Default for ConfirmModalProps
impl Props for ConfirmModalProps
Auto Trait Implementations§
impl !RefUnwindSafe for ConfirmModalProps
impl !Send for ConfirmModalProps
impl !Sync for ConfirmModalProps
impl !UnwindSafe for ConfirmModalProps
impl Freeze for ConfirmModalProps
impl Unpin for ConfirmModalProps
impl UnsafeUnpin for ConfirmModalProps
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