pub async fn file_info(&self, path: ArtifactoryPath) -> Result<FileInfo, Error> {
        let url = format!("{}/artifactory/api/storage/{}", self.origin, path.0);
        let url = Url::parse(&url).unwrap();

        let info: FileInfo = reqwest::get(url).await?.json().await?;

        Ok(info)
    }
/// Fetch metadata about a remote artifact.
Fetch metadata about a remote artifact.
Fetch metadata about a remote artifact .
pub async fn file_info(&self, path: ArtifactoryPath) -> Result<FileInfo, Error> {
        let url = format!("{}/artifactory/api/storage/{}", self.origin, path.0);
        let url = Url::parse(&url).unwrap();
        let info: FileInfo = reqwest::get(url).await?.json().await?;
        Ok(info)
    }
pub async fn file_info ( & self , path : ArtifactoryPath ) -> Result < FileInfo , Error > { let url = format ! ( " " self origin path 0 ) ; let url = Url :: parse ( & url ) . unwrap ( ) ; let info : FileInfo = reqwest :: get ( url ) . await ? . json ( ) . await ? ; Ok ( info ) }
Fetch metadata about a remote artifact.
Fetch metadata about a remote artifact .
&self
path
ArtifactoryPath
&self
path
ArtifactoryPath