pub struct ModalConfig {
pub position: ModalPosition,
pub backdrop: BackdropConfig,
pub size: ModalSizeConstraints,
pub close_on_backdrop: bool,
pub close_on_escape: bool,
pub hit_id: Option<HitId>,
}Expand description
Modal configuration.
Fields§
§position: ModalPosition§backdrop: BackdropConfig§size: ModalSizeConstraints§close_on_backdrop: bool§close_on_escape: bool§hit_id: Option<HitId>Implementations§
Source§impl ModalConfig
impl ModalConfig
pub fn position(self, position: ModalPosition) -> Self
pub fn backdrop(self, backdrop: BackdropConfig) -> Self
pub fn size(self, size: ModalSizeConstraints) -> Self
pub fn close_on_backdrop(self, close: bool) -> Self
pub fn close_on_escape(self, close: bool) -> Self
pub fn hit_id(self, id: HitId) -> Self
Trait Implementations§
Source§impl Clone for ModalConfig
impl Clone for ModalConfig
Source§fn clone(&self) -> ModalConfig
fn clone(&self) -> ModalConfig
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 moreSource§impl Debug for ModalConfig
impl Debug for ModalConfig
Auto Trait Implementations§
impl Freeze for ModalConfig
impl RefUnwindSafe for ModalConfig
impl Send for ModalConfig
impl Sync for ModalConfig
impl Unpin for ModalConfig
impl UnsafeUnpin for ModalConfig
impl UnwindSafe for ModalConfig
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