pub struct WalletInfoParams { /* private fields */ }Expand description
Parameters for /paywallet/wallet/getUserWallet.
Implementations§
Source§impl WalletInfoParams
impl WalletInfoParams
Sourcepub fn new() -> Self
pub fn new() -> Self
Creates wallet-info parameters using the current UTC timestamp in milliseconds.
Sourcepub fn at_timestamp(timestamp_ms: i64) -> Self
pub fn at_timestamp(timestamp_ms: i64) -> Self
Creates wallet-info parameters with a fixed timestamp for deterministic callers/tests.
pub fn with_platform_type(self, platform_type: u32) -> BpiResult<Self>
pub fn with_trace_id(self, trace_id: i64) -> BpiResult<Self>
pub fn with_version(self, version: impl Into<String>) -> BpiResult<Self>
Trait Implementations§
Source§impl Clone for WalletInfoParams
impl Clone for WalletInfoParams
Source§fn clone(&self) -> WalletInfoParams
fn clone(&self) -> WalletInfoParams
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 WalletInfoParams
impl Debug for WalletInfoParams
Source§impl Default for WalletInfoParams
impl Default for WalletInfoParams
impl Eq for WalletInfoParams
Source§impl PartialEq for WalletInfoParams
impl PartialEq for WalletInfoParams
Source§fn eq(&self, other: &WalletInfoParams) -> bool
fn eq(&self, other: &WalletInfoParams) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for WalletInfoParams
Auto Trait Implementations§
impl Freeze for WalletInfoParams
impl RefUnwindSafe for WalletInfoParams
impl Send for WalletInfoParams
impl Sync for WalletInfoParams
impl Unpin for WalletInfoParams
impl UnsafeUnpin for WalletInfoParams
impl UnwindSafe for WalletInfoParams
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.