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

Enum

KeyboardKind

pub enum KeyboardKind {
    Alphanumeric = 0,
    Password = 1,
    Numbers = 2,
    Decimal = 3,
    Email = 4,
}

Variants

Alphanumeric = 0

Password = 1

Numbers = 2

Decimal = 3

Email = 4

Trait Implementations

impl Archive for KeyboardKind

type Archived = ArchivedKeyboardKind

The archived representation of this type. Read more

type Resolver = KeyboardKindResolver

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 AsScalar<1> for KeyboardKind

fn as_scalar(&self) -> [u32; 1]

impl Clone for KeyboardKind

fn clone(&self) -> KeyboardKind

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 KeyboardKind

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

Formats the value using the given formatter. Read more

impl Default for KeyboardKind

fn default() -> KeyboardKind

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

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

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

Deserializes using the given deserializer

impl From<&ArchivedKeyboardKind> for KeyboardKind

fn from(archived: &ArchivedKeyboardKind) -> Self

Converts to this type from the input type.

impl FromPrimitive for KeyboardKind

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 FromScalar<1> for KeyboardKind

fn from_scalar([value]: [u32; 1]) -> Self

impl PartialEq for KeyboardKind

fn eq(&self, other: &KeyboardKind) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

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

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 KeyboardKind

impl Eq for KeyboardKind

impl StructuralPartialEq for KeyboardKind

Auto Trait Implementations

impl Freeze for KeyboardKind

impl RefUnwindSafe for KeyboardKind

impl Send for KeyboardKind

impl Sync for KeyboardKind

impl Unpin for KeyboardKind

impl UnsafeUnpin for KeyboardKind

impl UnwindSafe for KeyboardKind