fetch_project_time_logs

Function fetch_project_time_logs 

Source
pub fn fetch_project_time_logs(
    options: &FetchOptions,
) -> Result<Project, QueryError>
Expand description

Fetches the project time logs from the GitLab API. A valid access token is required for internal and private projects. To call the function, create a FetchOptions instance with FetchOptions::new().

§Errors

For the possible errors, see QueryError.

§Example

let options = FetchOptions::new("https://gitlab.com/gitlab-org/gitlab", None)?;
let project = fetch_project_time_logs(&options);
// Check for errors
match project {
    Ok(project) => println!("{:?}", project),
    Err(err) => println!("{:?}", err),
};