parse

Function parse 

Source
pub async fn parse(
    file_path: &PathBuf,
    access_token: &str,
) -> Result<AzureConfig, Box<dyn Error>>
Expand description

Parses an Azure configuration file from a YAML file.

§Arguments

  • file_path - The path to the YAML configuration file.
  • access_token - The Azure access token for API authentication.

§Returns

  • Result<AzureConfig, Box<dyn std::error::Error>> - The parsed configuration or an error.

§Example

use std::path::PathBuf;
let file_path = PathBuf::from("config.yaml");
let access_token = "your_access_token";
let config = parse(&file_path, access_token).await?;