pub fn query<T>(&self, hash: impl TryInto<SampleHash>) -> GenericResult<T>
    where
        T: serde::de::DeserializeOwned,
    {
        Ok(reqwest::get(self.query_url(unwrap_try_into(hash)?).as_str())?.json()?)
    }
/// query a sample (free format)
///
/// # Example
///
/// ```ignore
/// use iocutil::virusbay::{VirusBayClient, Response};
///
/// let client = VirusBayClient::default();
///
/// let r: Response = client.query("e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855")
///     .expect("failed to search");
/// ```
query a sample (free format)
query a sample ( free format )
pub fn query<T>(&self, hash: impl TryInto<SampleHash>) -> GenericResult<T>
    where
        T: serde::de::DeserializeOwned,
    {
        Ok(reqwest::get(self.query_url(unwrap_try_into(hash)?).as_str())?.json()?)
    }
pub fn query < T > ( & self , hash : impl TryInto < SampleHash > ) -> GenericResult < T > where T : serde :: de :: DeserializeOwned , { Ok ( reqwest :: get ( self . query_url ( unwrap_try_into ( hash ) ? ) . as_str ( ) ) ? . json ( ) ? ) }
query a sample (free format)
query a sample ( free format )
&self
hash
impl TryInto<SampleHash>
example
```ignore
use iocutil::virusbay::{VirusBayClient, Response}.

let client = VirusBayClient::default().


` ` ` ignore use iocutil :: virusbay :: { VirusBayClient Response } . let client = VirusBayClient :: default () .