pub struct TopUpHandler { /* private fields */ }Implementations§
Source§impl TopUpHandler
impl TopUpHandler
pub fn new() -> Self
pub fn init_verbose() -> Self
pub fn with_config(self, config: CalculatorConfig) -> Self
pub async fn calculate(&self, input: LoanInput) -> Result<LoanResult>
pub async fn calculate_from_json(&self, json: &str) -> Result<String>
pub async fn health_check(&self) -> Value
Trait Implementations§
Source§impl Clone for TopUpHandler
impl Clone for TopUpHandler
Source§fn clone(&self) -> TopUpHandler
fn clone(&self) -> TopUpHandler
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 TopUpHandler
impl Debug for TopUpHandler
Source§impl Default for TopUpHandler
impl Default for TopUpHandler
Source§impl<'de> Deserialize<'de> for TopUpHandler
impl<'de> Deserialize<'de> for TopUpHandler
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 TopUpHandler
impl RefUnwindSafe for TopUpHandler
impl Send for TopUpHandler
impl Sync for TopUpHandler
impl Unpin for TopUpHandler
impl UnsafeUnpin for TopUpHandler
impl UnwindSafe for TopUpHandler
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