pub struct IataValidatorClient {
pub tool_url: &'static str,
/* private fields */
}Fields§
§tool_url: &'static strImplementations§
Source§impl IataValidatorClient
impl IataValidatorClient
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 IataValidatorClient
impl Clone for IataValidatorClient
Source§fn clone(&self) -> IataValidatorClient
fn clone(&self) -> IataValidatorClient
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 IataValidatorClient
impl !UnwindSafe for IataValidatorClient
impl Freeze for IataValidatorClient
impl Send for IataValidatorClient
impl Sync for IataValidatorClient
impl Unpin for IataValidatorClient
impl UnsafeUnpin for IataValidatorClient
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