pub struct Gs1DecoderClient {
pub tool_url: &'static str,
/* private fields */
}Fields§
§tool_url: &'static strImplementations§
Source§impl Gs1DecoderClient
impl Gs1DecoderClient
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 Gs1DecoderClient
impl Clone for Gs1DecoderClient
Auto Trait Implementations§
impl !RefUnwindSafe for Gs1DecoderClient
impl !UnwindSafe for Gs1DecoderClient
impl Forget for Gs1DecoderClient
impl Freeze for Gs1DecoderClient
impl Send for Gs1DecoderClient
impl Sync for Gs1DecoderClient
impl Unpin for Gs1DecoderClient
impl UnsafeUnpin for Gs1DecoderClient
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