shared/api/endpoints/
meta.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::{
    api::{ApiEndpoint, Method},
    domain::meta::{GetMetadataPath, MetadataResponse},
    error::EmptyError,
};

/// Get metadata.
pub struct Get;
impl ApiEndpoint for Get {
    type Path = GetMetadataPath;
    type Req = ();
    type Res = MetadataResponse;
    type Err = EmptyError;
    const METHOD: Method = Method::Get;
}