pub struct UnlockTradeOutcome {
pub total_requested: usize,
pub total_unlocked: usize,
pub need_otp: bool,
pub failed_accounts: Vec<u64>,
pub message: Option<String>,
}Expand description
解锁交易结果
Fields§
§total_requested: usize所有 broker 合计请求的账户数
total_unlocked: usize所有 broker 合计成功解锁的账户数
need_otp: bool服务端是否要求 OTP(首次调用可能返 true,用户应重传 otp)
failed_accounts: Vec<u64>如果 need_otp = true,这里列出需要 OTP 的账户
message: Option<String>服务端返回的信息(partial failure 时 daemon 会带详情)
Trait Implementations§
Source§impl Clone for UnlockTradeOutcome
impl Clone for UnlockTradeOutcome
Source§fn clone(&self) -> UnlockTradeOutcome
fn clone(&self) -> UnlockTradeOutcome
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 UnlockTradeOutcome
impl Debug for UnlockTradeOutcome
Source§impl Default for UnlockTradeOutcome
impl Default for UnlockTradeOutcome
Source§fn default() -> UnlockTradeOutcome
fn default() -> UnlockTradeOutcome
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for UnlockTradeOutcome
impl RefUnwindSafe for UnlockTradeOutcome
impl Send for UnlockTradeOutcome
impl Sync for UnlockTradeOutcome
impl Unpin for UnlockTradeOutcome
impl UnsafeUnpin for UnlockTradeOutcome
impl UnwindSafe for UnlockTradeOutcome
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