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

use super::{Loc, RpEndpoint};

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

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