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