pub struct AggregationPrerequisites {
pub min_ticket_count: Option<usize>,
pub min_unaggregated_ratio: Option<f64>,
}
Expand description
Prerequisites for the ticket aggregator. The prerequisites are independent of each other. If none of the prerequisites are given, they are considered satisfied.
Fields§
§min_ticket_count: Option<usize>
Minimum number of tickets in the channel.
min_unaggregated_ratio: Option<f64>
Minimum ratio between balance of unaggregated messages and channel stake.
I.e.: the condition is met if a sum of unaggregated ticket amounts divided by
the total channel stake is greater than min_unaggregated_ratio
.
Trait Implementations§
Source§impl Clone for AggregationPrerequisites
impl Clone for AggregationPrerequisites
Source§fn clone(&self) -> AggregationPrerequisites
fn clone(&self) -> AggregationPrerequisites
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 AggregationPrerequisites
impl Debug for AggregationPrerequisites
Source§impl Default for AggregationPrerequisites
impl Default for AggregationPrerequisites
Source§fn default() -> AggregationPrerequisites
fn default() -> AggregationPrerequisites
Returns the “default value” for a type. Read more
Source§impl PartialEq for AggregationPrerequisites
impl PartialEq for AggregationPrerequisites
impl Copy for AggregationPrerequisites
impl StructuralPartialEq for AggregationPrerequisites
Auto Trait Implementations§
impl Freeze for AggregationPrerequisites
impl RefUnwindSafe for AggregationPrerequisites
impl Send for AggregationPrerequisites
impl Sync for AggregationPrerequisites
impl Unpin for AggregationPrerequisites
impl UnwindSafe for AggregationPrerequisites
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,
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more