pub struct TradePswdAuthReq {
pub uid: u64,
pub flag: Option<u32>,
pub pswds: Vec<AccountPswd>,
pub bio_id_hash: Option<String>,
pub bio_trade_sig: Option<Vec<u8>>,
}Expand description
验证交易密码协议 cmd2900
Fields§
§uid: u64牛牛号
flag: Option<u32>操作类型,0 锁定交易 1 解锁交易 2 开启指纹解锁功能 3 指纹解锁交易
pswds: Vec<AccountPswd>业务帐号列表
bio_id_hash: Option<String>指纹id的hash值
bio_trade_sig: Option<Vec<u8>>指纹解锁交易的凭证
Implementations§
Source§impl TradePswdAuthReq
impl TradePswdAuthReq
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 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 TradePswdAuthReq
impl Clone for TradePswdAuthReq
Source§fn clone(&self) -> TradePswdAuthReq
fn clone(&self) -> TradePswdAuthReq
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 TradePswdAuthReq
impl Debug for TradePswdAuthReq
Source§impl Default for TradePswdAuthReq
impl Default for TradePswdAuthReq
Source§impl Message for TradePswdAuthReq
impl Message for TradePswdAuthReq
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 TradePswdAuthReq
impl PartialEq for TradePswdAuthReq
impl StructuralPartialEq for TradePswdAuthReq
Auto Trait Implementations§
impl Freeze for TradePswdAuthReq
impl RefUnwindSafe for TradePswdAuthReq
impl Send for TradePswdAuthReq
impl Sync for TradePswdAuthReq
impl Unpin for TradePswdAuthReq
impl UnsafeUnpin for TradePswdAuthReq
impl UnwindSafe for TradePswdAuthReq
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