diff options
author | Matthias Beyer <matthias.beyer@atos.net> | 2021-01-18 10:27:23 +0100 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2021-01-18 14:19:39 +0100 |
commit | 50baa9772a006c59074a4b924ce6a85cc8ae29fb (patch) | |
tree | 915e4a91093fc5a2f3aeab0681ce1adaa394b044 /src/config/endpoint_config.rs | |
parent | 9aa56fcb69e53aedc20973c5c6284d3e277f92fe (diff) |
Add doc on configuration code
Signed-off-by: Matthias Beyer <matthias.beyer@atos.net>
Diffstat (limited to 'src/config/endpoint_config.rs')
-rw-r--r-- | src/config/endpoint_config.rs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/config/endpoint_config.rs b/src/config/endpoint_config.rs index 1ec5e8c..028c86f 100644 --- a/src/config/endpoint_config.rs +++ b/src/config/endpoint_config.rs @@ -11,14 +11,18 @@ use getset::{CopyGetters, Getters}; use serde::Deserialize; +/// Configuration of a single endpoint #[derive(Clone, Debug, Getters, CopyGetters, Deserialize)] pub struct Endpoint { + /// A human-readable name of the endpoint #[getset(get = "pub")] name: String, + /// The URI where the endpoint is reachable #[getset(get = "pub")] uri: String, + /// The type of the endpoint #[getset(get = "pub")] endpoint_type: EndpointType, @@ -35,6 +39,7 @@ pub struct Endpoint { maxjobs: usize, } +/// The type of an endpoint #[derive(Clone, Debug, Deserialize, Eq, PartialEq)] pub enum EndpointType { #[serde(rename = "socket")] |