pub struct ActivityParser {
pub source: NodeId,
pub destination: NodeId,
pub start_secs: Option<u16>,
pub count: Option<u64>,
pub interval_secs: ValueOrRange<u16>,
pub amount_msat: ValueOrRange<u64>,
}
Expand description
Data structure used to parse information from the simulation file. It allows source and destination to be NodeId, which enables the use of public keys and aliases in the simulation description.
Fields§
§source: NodeId
The source of the payment.
destination: NodeId
The destination of the payment.
start_secs: Option<u16>
The time in the simulation to start the payment.
count: Option<u64>
The number of payments to send over the course of the simulation.
interval_secs: ValueOrRange<u16>
The interval of the event, as in every how many seconds the payment is performed.
amount_msat: ValueOrRange<u64>
The amount of m_sat to used in this payment.
Trait Implementations§
Source§impl Clone for ActivityParser
impl Clone for ActivityParser
Source§fn clone(&self) -> ActivityParser
fn clone(&self) -> ActivityParser
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 ActivityParser
impl Debug for ActivityParser
Source§impl<'de> Deserialize<'de> for ActivityParser
impl<'de> Deserialize<'de> for ActivityParser
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 ActivityParser
impl RefUnwindSafe for ActivityParser
impl Send for ActivityParser
impl Sync for ActivityParser
impl Unpin for ActivityParser
impl UnwindSafe for ActivityParser
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request
Source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T
in a tonic::Request