torrust-tracker 3.0.0

A feature rich BitTorrent tracker.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use axum::Json;

use super::resources::{CheckReport, Report};

pub fn ok(details: Vec<CheckReport>) -> Json<Report> {
    Json(Report::ok(details))
}

pub fn error(message: String, details: Vec<CheckReport>) -> Json<Report> {
    Json(Report::error(message, details))
}

pub fn none() -> Json<Report> {
    Json(Report::none())
}