pub struct BioTradeAuthReq {
pub uid: u64,
pub flag: Option<u32>,
pub account_ids: Vec<u64>,
pub bio_id_hash: Option<String>,
pub device_id: Option<String>,
pub bio_trade_sig: Option<Vec<u8>>,
}Expand description
指纹解锁交易的协议 cmd2907
Fields§
§uid: u64牛牛号
flag: Option<u32>操作类型,0 锁定交易 1 解锁交易
account_ids: Vec<u64>业务帐号id列表
bio_id_hash: Option<String>指纹id的hash值
device_id: Option<String>设备id
bio_trade_sig: Option<Vec<u8>>指纹解锁交易的凭证
Implementations§
Source§impl BioTradeAuthReq
impl BioTradeAuthReq
Sourcepub fn bio_id_hash(&self) -> &str
pub fn bio_id_hash(&self) -> &str
Returns the value of bio_id_hash, or the default value if bio_id_hash is unset.
Sourcepub fn device_id(&self) -> &str
pub fn device_id(&self) -> &str
Returns the value of device_id, or the default value if device_id is unset.
Sourcepub fn bio_trade_sig(&self) -> &[u8] ⓘ
pub fn bio_trade_sig(&self) -> &[u8] ⓘ
Returns the value of bio_trade_sig, or the default value if bio_trade_sig is unset.
Trait Implementations§
Source§impl Clone for BioTradeAuthReq
impl Clone for BioTradeAuthReq
Source§fn clone(&self) -> BioTradeAuthReq
fn clone(&self) -> BioTradeAuthReq
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BioTradeAuthReq
impl Debug for BioTradeAuthReq
Source§impl Default for BioTradeAuthReq
impl Default for BioTradeAuthReq
Source§impl Hash for BioTradeAuthReq
impl Hash for BioTradeAuthReq
Source§impl Message for BioTradeAuthReq
impl Message for BioTradeAuthReq
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for BioTradeAuthReq
impl PartialEq for BioTradeAuthReq
impl Eq for BioTradeAuthReq
impl StructuralPartialEq for BioTradeAuthReq
Auto Trait Implementations§
impl Freeze for BioTradeAuthReq
impl RefUnwindSafe for BioTradeAuthReq
impl Send for BioTradeAuthReq
impl Sync for BioTradeAuthReq
impl Unpin for BioTradeAuthReq
impl UnsafeUnpin for BioTradeAuthReq
impl UnwindSafe for BioTradeAuthReq
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.