Be aware: Foundation will NEVER ask for your seed words, device PIN, or call you unexpectedly. If anyone does, it's a scam.

Enum

ModalStyle

pub enum ModalStyle {
    SlideUpDraggablePopup = 0,
    SlideUpFixedPopup = 1,
    SlideUpFullscreen = 2,
    Instant = 3,
}

Variants

SlideUpDraggablePopup = 0

A regular modal card that slides up from the bottom of the screen. The user can drag it and dismiss it by dragging or clicking away.

SlideUpFixedPopup = 1

A modal card that slides up from the bottom of the screen. The user can’t drag it and dismiss it by clicking away.

SlideUpFullscreen = 2

A modal card that slides up from the bottom of the screen and takes the entire screen.

Instant = 3

A modal that appears instantly with no animation.

Trait Implementations

impl Archive for ModalStyle

type Archived = ArchivedModalStyle

The archived representation of this type. Read more

type Resolver = ModalStyleResolver

The resolver for this type. It must contain all the additional information from serializing needed to make the archived type from the normal type.

fn resolve( &self, resolver: <Self as Archive>::Resolver, out: Place<<Self as Archive>::Archived>, )

Creates the archived version of this value at the given position and writes it to the given output. Read more

const COPY_OPTIMIZATION: CopyOptimization<Self> = _

An optimization flag that allows the bytes of this type to be copied directly to a writer instead of calling serialize. Read more

impl Clone for ModalStyle

fn clone(&self) -> ModalStyle

Returns a duplicate of the value. Read more
1.0.0

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

impl Debug for ModalStyle

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

impl Default for ModalStyle

fn default() -> ModalStyle

Returns the “default value” for a type. Read more

impl<__D: Fallible + ?Sized> Deserialize<ModalStyle, __D> for Archived<ModalStyle>

fn deserialize( &self, deserializer: &mut __D, ) -> Result<ModalStyle, <__D as Fallible>::Error>

Deserializes using the given deserializer

impl FromPrimitive for ModalStyle

fn from_i64(n: i64) -> Option<Self>

Converts an i64 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.

fn from_u64(n: u64) -> Option<Self>

Converts an u64 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.

fn from_isize(n: isize) -> Option<Self>

Converts an isize to return an optional value of this type. If the value cannot be represented by this type, then None is returned.

fn from_i8(n: i8) -> Option<Self>

Converts an i8 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.

fn from_i16(n: i16) -> Option<Self>

Converts an i16 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.

fn from_i32(n: i32) -> Option<Self>

Converts an i32 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.

fn from_i128(n: i128) -> Option<Self>

Converts an i128 to return an optional value of this type. If the value cannot be represented by this type, then None is returned. Read more

fn from_usize(n: usize) -> Option<Self>

Converts a usize to return an optional value of this type. If the value cannot be represented by this type, then None is returned.

fn from_u8(n: u8) -> Option<Self>

Converts an u8 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.

fn from_u16(n: u16) -> Option<Self>

Converts an u16 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.

fn from_u32(n: u32) -> Option<Self>

Converts an u32 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.

fn from_u128(n: u128) -> Option<Self>

Converts an u128 to return an optional value of this type. If the value cannot be represented by this type, then None is returned. Read more

fn from_f32(n: f32) -> Option<Self>

Converts a f32 to return an optional value of this type. If the value cannot be represented by this type, then None is returned.

fn from_f64(n: f64) -> Option<Self>

Converts a f64 to return an optional value of this type. If the value cannot be represented by this type, then None is returned. Read more

impl<__S: Fallible + ?Sized> Serialize<__S> for ModalStyle

fn serialize( &self, serializer: &mut __S, ) -> Result<<Self as Archive>::Resolver, <__S as Fallible>::Error>

Writes the dependencies for the object and returns a resolver that can create the archived type.

impl Copy for ModalStyle

Auto Trait Implementations

impl Freeze for ModalStyle

impl RefUnwindSafe for ModalStyle

impl Send for ModalStyle

impl Sync for ModalStyle

impl Unpin for ModalStyle

impl UnsafeUnpin for ModalStyle

impl UnwindSafe for ModalStyle