pub struct AftermathTask {
pub pool_address: Option<String>,
pub in_amount: Option<f64>,
pub in_coin_type: Option<String>,
pub out_coin_type: Option<String>,
}
Fields§
§pool_address: Option<String>
§in_amount: Option<f64>
§in_coin_type: Option<String>
§out_coin_type: Option<String>
Implementations§
Source§impl AftermathTask
impl AftermathTask
Sourcepub fn pool_address(&self) -> &str
pub fn pool_address(&self) -> &str
Returns the value of pool_address
, or the default value if pool_address
is unset.
Sourcepub fn in_amount(&self) -> f64
pub fn in_amount(&self) -> f64
Returns the value of in_amount
, or the default value if in_amount
is unset.
Sourcepub fn in_coin_type(&self) -> &str
pub fn in_coin_type(&self) -> &str
Returns the value of in_coin_type
, or the default value if in_coin_type
is unset.
Sourcepub fn out_coin_type(&self) -> &str
pub fn out_coin_type(&self) -> &str
Returns the value of out_coin_type
, or the default value if out_coin_type
is unset.
Trait Implementations§
Source§impl Clone for AftermathTask
impl Clone for AftermathTask
Source§fn clone(&self) -> AftermathTask
fn clone(&self) -> AftermathTask
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 AftermathTask
impl Debug for AftermathTask
Source§impl Default for AftermathTask
impl Default for AftermathTask
§impl<'de> Deserialize<'de> for AftermathTask
impl<'de> Deserialize<'de> for AftermathTask
§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
Source§impl Message for AftermathTask
impl Message for AftermathTask
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Encodes the message with a length-delimiter to a buffer. Read more
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes a length-delimited instance of the message from the buffer.
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes an instance of the message from a buffer, and merges it into
self
. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self
.Source§impl PartialEq for AftermathTask
impl PartialEq for AftermathTask
§impl Serialize for AftermathTask
impl Serialize for AftermathTask
impl StructuralPartialEq for AftermathTask
Auto Trait Implementations§
impl Freeze for AftermathTask
impl RefUnwindSafe for AftermathTask
impl Send for AftermathTask
impl Sync for AftermathTask
impl Unpin for AftermathTask
impl UnwindSafe for AftermathTask
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