Enum citadel::model::PolicyType [−][src]
Defines a type of a wallet contract basing on the banking use case, abstracting the underlying technology(ies) into specific contract details
Variants (Non-exhaustive)
Accounts that allow spending with a simple procedure (like single signature). However the actual transfer may take some time (like mining onchain transaction). Analogous to “paying with gold coins” or “doing a SWFIT/SEPA transfer”. May require use of hardware wallet devices
Instant payment accounts allowing simple & fasm payments with strict limits. Must not require any hardware security device for processing. The main technology is the Lightning network, with different forms of fast payment channels on top of it (currently only BOLT-3-based). Analogous to credit cards payments and instant payment systems (PayPal, QIWI etc).
Accounts with complex spending processes, requiring hardware devices, multiple signatures, timelocks and other forms of limitations.
Future forms of smart-contracts for borrowing money and assets. Will probably require some advanced smart contract technology, like new forms of scriptless scripts and/or RGB schemata + simplicity scripting.
May also be used for providing funds to liquidity pools etc.
Trait Implementations
impl Clone for PolicyType
[src]
fn clone(&self) -> PolicyType
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for PolicyType
[src]
impl<'de> Deserialize<'de> for PolicyType
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Display for PolicyType
[src]
impl Eq for PolicyType
[src]
impl Hash for PolicyType
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
pub fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl Ord for PolicyType
[src]
fn cmp(&self, other: &PolicyType) -> Ordering
[src]
#[must_use]pub fn max(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self
1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]
impl PartialEq<PolicyType> for PolicyType
[src]
fn eq(&self, other: &PolicyType) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl PartialOrd<PolicyType> for PolicyType
[src]
fn partial_cmp(&self, other: &PolicyType) -> Option<Ordering>
[src]
#[must_use]pub fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]pub fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl Serialize for PolicyType
[src]
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl StructuralEq for PolicyType
[src]
impl StructuralPartialEq for PolicyType
[src]
Auto Trait Implementations
impl RefUnwindSafe for PolicyType
impl Send for PolicyType
impl Sync for PolicyType
impl Unpin for PolicyType
impl UnwindSafe for PolicyType
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<Q, K> Equivalent<K> for Q where
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
[src]
K: Borrow<Q> + ?Sized,
Q: Eq + ?Sized,
pub fn equivalent(&self, key: &K) -> bool
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,