add roles to agent & supervisor (#527)

This commit is contained in:
bmc-msft
2021-02-10 15:56:22 -05:00
committed by GitHub
parent b488811cfa
commit f8046934e9
3 changed files with 8 additions and 2 deletions

View File

@ -14,13 +14,17 @@ pub enum ClientType {
#[derive(Clone, Debug, PartialEq)]
pub enum Role {
Agent,
Proxy,
Supervisor,
}
impl Role {
pub fn as_str(&self) -> &'static str {
match self {
Self::Agent => "agent",
Self::Proxy => "proxy",
Self::Supervisor => "supervisor",
}
}
}