Skip to main content

consul_rs/
watch.rs

1use serde_derive::{Deserialize, Serialize};
2
3pub const ROUND_ROBIN: &'static str = "round_robin";
4pub const RANDOM: &'static str = "random";
5
6#[derive(Default, Debug, Serialize, Deserialize, Clone)]
7pub struct WatchService {
8    pub service_name: String,
9    pub tag: Option<String>,
10    pub passing_only: Option<bool>,
11}