pub struct IbanValidatorClient {
pub tool_url: &'static str,
/* private fields */
}Fields§
§tool_url: &'static strImplementations§
Source§impl IbanValidatorClient
impl IbanValidatorClient
pub fn new(api_key: Option<String>, base_url: Option<String>) -> Self
pub async fn get_health<T: for<'de> Deserialize<'de>>( &self, ) -> Result<ApiResponse<T>, Error>
pub async fn validate<T: for<'de> Deserialize<'de>>( &self, payload: Value, ) -> Result<ApiResponse<T>, Error>
pub async fn parse<T: for<'de> Deserialize<'de>>( &self, payload: Value, ) -> Result<ApiResponse<T>, Error>
Trait Implementations§
Source§impl Clone for IbanValidatorClient
impl Clone for IbanValidatorClient
Source§fn clone(&self) -> IbanValidatorClient
fn clone(&self) -> IbanValidatorClient
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 moreAuto Trait Implementations§
impl !RefUnwindSafe for IbanValidatorClient
impl !UnwindSafe for IbanValidatorClient
impl Freeze for IbanValidatorClient
impl Send for IbanValidatorClient
impl Sync for IbanValidatorClient
impl Unpin for IbanValidatorClient
impl UnsafeUnpin for IbanValidatorClient
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