pub struct WalletPolicy {
pub required_signers: u32,
pub total_signers: u32,
pub max_amount: Option<u64>,
pub allowed_recipients: Option<HashSet<String>>,
pub time_window: Option<(DateTime<Utc>, DateTime<Utc>)>,
}Fields§
§required_signers: u32§total_signers: u32§max_amount: Option<u64>§allowed_recipients: Option<HashSet<String>>§time_window: Option<(DateTime<Utc>, DateTime<Utc>)>Implementations§
Source§impl WalletPolicy
impl WalletPolicy
Trait Implementations§
Source§impl Clone for WalletPolicy
impl Clone for WalletPolicy
Source§fn clone(&self) -> WalletPolicy
fn clone(&self) -> WalletPolicy
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 WalletPolicy
impl Debug for WalletPolicy
Source§impl<'de> Deserialize<'de> for WalletPolicy
impl<'de> Deserialize<'de> for WalletPolicy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for WalletPolicy
impl RefUnwindSafe for WalletPolicy
impl Send for WalletPolicy
impl Sync for WalletPolicy
impl Unpin for WalletPolicy
impl UnsafeUnpin for WalletPolicy
impl UnwindSafe for WalletPolicy
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