pub enum PaymentTier {
Immediate,
Standard,
Economy,
}Expand description
Batching tier for on-chain send intents
Controls when a send intent is eligible for inclusion in a batch.
Immediate intents are processed right away; Standard and Economy
intents wait until their respective deadlines.
Variants§
Immediate
Process immediately without waiting for other intents
Standard
Process when the standard deadline is reached or an immediate batch is available
Economy
Process when the economy deadline is reached or an immediate batch is available
Implementations§
Source§impl PaymentTier
impl PaymentTier
Sourcepub fn from_config_name(s: &str) -> Option<Self>
pub fn from_config_name(s: &str) -> Option<Self>
Parse a tier from a configuration name.
Sourcepub fn config_name(self) -> &'static str
pub fn config_name(self) -> &'static str
Stable configuration name for this tier.
Sourcepub fn estimated_blocks(self) -> u32
pub fn estimated_blocks(self) -> u32
Target confirmation blocks advertised for this tier.
Sourcepub fn from_optional_str(s: Option<&str>) -> Self
pub fn from_optional_str(s: Option<&str>) -> Self
Parse a tier from an optional string value.
Returns Immediate when None is provided or the string is
unrecognized.
Trait Implementations§
Source§impl Clone for PaymentTier
impl Clone for PaymentTier
Source§fn clone(&self) -> PaymentTier
fn clone(&self) -> PaymentTier
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 moreimpl Copy for PaymentTier
Source§impl Debug for PaymentTier
impl Debug for PaymentTier
Source§impl Default for PaymentTier
impl Default for PaymentTier
Source§fn default() -> PaymentTier
fn default() -> PaymentTier
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for PaymentTier
impl<'de> Deserialize<'de> for PaymentTier
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
impl Eq for PaymentTier
Source§impl Hash for PaymentTier
impl Hash for PaymentTier
Source§impl PartialEq for PaymentTier
impl PartialEq for PaymentTier
Source§fn eq(&self, other: &PaymentTier) -> bool
fn eq(&self, other: &PaymentTier) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for PaymentTier
impl Serialize for PaymentTier
impl StructuralPartialEq for PaymentTier
Auto Trait Implementations§
impl Freeze for PaymentTier
impl RefUnwindSafe for PaymentTier
impl Send for PaymentTier
impl Sync for PaymentTier
impl Unpin for PaymentTier
impl UnsafeUnpin for PaymentTier
impl UnwindSafe for PaymentTier
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