1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
//! Model for services.

use super::{Loc, RpEndpoint};
use linked_hash_map::LinkedHashMap;

#[derive(Debug, Clone, Serialize, Default)]
pub struct RpServiceBodyHttp {
    /// Default URL to use for service.
    pub url: Option<Loc<String>>,
}

decl_body!(pub struct RpServiceBody {
    pub http: RpServiceBodyHttp,
    pub endpoints: LinkedHashMap<String, Loc<RpEndpoint>>,
});