pub async fn check_version(&self, product: &str) -> Result<VersionCheck> {
        // We to_string here for the test scenario.
        let url = format!(
            "{checkpoint}/{product}",
            checkpoint = CHECKPOINT_URL.to_string(),
            product = product,
        );

        let resp = self.get(&url)
            .await?
            .json::<VersionCheck>()
            .await?;

        Ok(resp)
    }
// Version check the given product via the checkpoint API
Version check the given product via the checkpoint API
Version check the given product via the checkpoint API
pub async fn check_version(&self, product: &str) -> Result<VersionCheck> {
        // We to_string here for the test scenario.
        let url = format!(
            "{checkpoint}/{product}",
            checkpoint = CHECKPOINT_URL.to_string(),
            product = product,
        );
        let resp = self.get(&url)
            .await?
            .json::<VersionCheck>()
            .await?;
        Ok(resp)
    }
pub async fn check_version ( & self , product : & str ) -> Result < VersionCheck > { // We to_string here for the test scenario. let url = format ! ( " " checkpoint CHECKPOINT_URL to_string ( ) product product ) ; let resp = self . get ( & url ) . await ? . json :: < VersionCheck > ( ) . await ? ; Ok ( resp ) }
Version check the given product via the checkpoint API
Version check the given product via the checkpoint API
&self
product
&str
&self
product
&str