Struct
MatchedQrResult
pub struct MatchedQrResult {
pub scan_result: ScanQrResult,
pub matched_rules: Vec<ScanQrMatchedRule>,
}Fields
scan_result: ScanQrResultmatched_rules: Vec<ScanQrMatchedRule>Implementations
impl MatchedQrResult
impl MatchedQrResult
pub fn from_slice(data: &[u8]) -> Option<Self>
pub fn serialize(&self) -> Vec<u8> ⓘ
Trait Implementations
impl Archive for MatchedQrResult
impl Archive for MatchedQrResult
const COPY_OPTIMIZATION: CopyOptimization<Self>
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 moretype Archived = ArchivedMatchedQrResult
type Archived = ArchivedMatchedQrResult
The archived representation of this type. Read more
type Resolver = MatchedQrResultResolver
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.
impl Clone for MatchedQrResult
impl Clone for MatchedQrResult
fn clone(&self) -> MatchedQrResult
fn clone(&self) -> MatchedQrResult
Returns a duplicate of the value. Read more
1.0.0fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Debug for MatchedQrResult
impl Debug for MatchedQrResult
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>,
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>
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
impl<__S: Fallible + ?Sized> Serialize<__S> for MatchedQrResult
fn serialize(
&self,
serializer: &mut __S,
) -> Result<<Self as Archive>::Resolver, <__S as Fallible>::Error>
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.