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

Struct

MatchedQrResult

pub struct MatchedQrResult {
    pub scan_result: ScanQrResult,
    pub matched_rules: Vec<ScanQrMatchedRule>,
}

Fields

scan_result: ScanQrResultmatched_rules: Vec<ScanQrMatchedRule>

Implementations

impl MatchedQrResult

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 MatchedQrResult
where ScanQrResult: Archive, Vec<ScanQrMatchedRule>: 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 = ArchivedMatchedQrResult

The archived representation of this type. Read more

type Resolver = MatchedQrResultResolver

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 Clone for MatchedQrResult

fn clone(&self) -> MatchedQrResult

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 MatchedQrResult

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

Formats the value using the given formatter. Read more

impl<__D: Fallible + ?Sized> Deserialize<MatchedQrResult, __D> for Archived<MatchedQrResult>
where ScanQrResult: Archive, <ScanQrResult as Archive>::Archived: Deserialize<ScanQrResult, __D>, Vec<ScanQrMatchedRule>: Archive, <Vec<ScanQrMatchedRule> as Archive>::Archived: Deserialize<Vec<ScanQrMatchedRule>, __D>,

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

Deserializes using the given deserializer

impl<__S: Fallible + ?Sized> Serialize<__S> for MatchedQrResult
where ScanQrResult: Serialize<__S>, Vec<ScanQrMatchedRule>: 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 MatchedQrResult

impl RefUnwindSafe for MatchedQrResult

impl Send for MatchedQrResult

impl Sync for MatchedQrResult

impl Unpin for MatchedQrResult

impl UnsafeUnpin for MatchedQrResult

impl UnwindSafe for MatchedQrResult