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

Struct

SelectFileResult

pub struct SelectFileResult {
    pub files: Vec<(String, Location)>,
}

Fields

files: Vec<(String, Location)>

Implementations

impl SelectFileResult

pub fn new(files: Vec<(String, Location)>) -> Self

Permission: not needed

pub fn files(&self) -> &[(String, Location)]

Permission: not needed

pub fn from_slice(data: &[u8]) -> Option<Self>

Permission: not needed

pub fn serialize(&self) -> Vec<u8> ⓘ

Permission: not needed

Trait Implementations

impl Archive for SelectFileResult
where Vec<(String, Location)>: Archive,

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

type Archived = ArchivedSelectFileResult

The archived representation of this type. Read more

type Resolver = SelectFileResultResolver

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::Resolver, out: Place<Self::Archived>)

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

impl Debug for SelectFileResult

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

Formats the value using the given formatter. Read more

impl<__D: Fallible + ?Sized> Deserialize<SelectFileResult, __D> for Archived<SelectFileResult>
where Vec<(String, Location)>: Archive, <Vec<(String, Location)> as Archive>::Archived: Deserialize<Vec<(String, Location)>, __D>,

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

Deserializes using the given deserializer

impl<__S: Fallible + ?Sized> Serialize<__S> for SelectFileResult
where Vec<(String, Location)>: Serialize<__S>,

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.

Auto Trait Implementations

impl Freeze for SelectFileResult

impl RefUnwindSafe for SelectFileResult

impl Send for SelectFileResult

impl Sync for SelectFileResult

impl Unpin for SelectFileResult

impl UnsafeUnpin for SelectFileResult

impl UnwindSafe for SelectFileResult