pub struct GetBioTradeSigReq {
pub uid: u64,
pub device_id: Option<String>,
pub bio_id_hash: Option<String>,
pub auth_pswd_sig: Option<Vec<u8>>,
}Expand description
获取指纹解锁交易需要的凭证 cmd2906
Fields§
§uid: u64牛牛号
device_id: Option<String>设备id, server需要记录该设备开启了指纹解锁
bio_id_hash: Option<String>指纹id的hash值
auth_pswd_sig: Option<Vec<u8>>完成交易密码验证流程的凭证, 通过cmd2900、cmd2901获得
Implementations§
Source§impl GetBioTradeSigReq
impl GetBioTradeSigReq
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_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 auth_pswd_sig(&self) -> &[u8] ⓘ
pub fn auth_pswd_sig(&self) -> &[u8] ⓘ
Returns the value of auth_pswd_sig, or the default value if auth_pswd_sig is unset.
Trait Implementations§
Source§impl Clone for GetBioTradeSigReq
impl Clone for GetBioTradeSigReq
Source§fn clone(&self) -> GetBioTradeSigReq
fn clone(&self) -> GetBioTradeSigReq
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 GetBioTradeSigReq
impl Debug for GetBioTradeSigReq
Source§impl Default for GetBioTradeSigReq
impl Default for GetBioTradeSigReq
Source§impl Hash for GetBioTradeSigReq
impl Hash for GetBioTradeSigReq
Source§impl Message for GetBioTradeSigReq
impl Message for GetBioTradeSigReq
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 GetBioTradeSigReq
impl PartialEq for GetBioTradeSigReq
impl Eq for GetBioTradeSigReq
impl StructuralPartialEq for GetBioTradeSigReq
Auto Trait Implementations§
impl Freeze for GetBioTradeSigReq
impl RefUnwindSafe for GetBioTradeSigReq
impl Send for GetBioTradeSigReq
impl Sync for GetBioTradeSigReq
impl Unpin for GetBioTradeSigReq
impl UnsafeUnpin for GetBioTradeSigReq
impl UnwindSafe for GetBioTradeSigReq
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.