pub enum ServerRole {
Show 16 variants
K3sControl,
K3sWorker,
Postgres,
MySQL,
MongoDB,
Redis,
Memcached,
RabbitMQ,
Kafka,
Elasticsearch,
LoadBalancer,
Monitoring,
CIRunner,
Bastion,
Storage,
Custom,
}Expand description
Server role/purpose
Variants§
K3sControl
K3s control plane node
K3sWorker
K3s worker node
Postgres
PostgreSQL database server
MySQL
MySQL/MariaDB database server
MongoDB
MongoDB database server
Redis
Redis cache server
Memcached
Memcached cache server
RabbitMQ
RabbitMQ message broker
Kafka
Kafka message broker
Elasticsearch
Elasticsearch search engine
LoadBalancer
Load balancer (HAProxy, Nginx, etc.)
Monitoring
Monitoring server (Prometheus, Grafana, etc.)
CIRunner
CI/CD runner (GitLab Runner, etc.)
Bastion
Bastion/Jump server for SSH access
Storage
Storage server (MinIO, NFS, etc.)
Custom
Custom/generic server
Implementations§
Source§impl ServerRole
impl ServerRole
Sourcepub fn display_name(&self) -> &'static str
pub fn display_name(&self) -> &'static str
Get display name for the role
Sourcepub fn description(&self) -> &'static str
pub fn description(&self) -> &'static str
Get description for the role
Trait Implementations§
Source§impl Clone for ServerRole
impl Clone for ServerRole
Source§fn clone(&self) -> ServerRole
fn clone(&self) -> ServerRole
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ServerRole
impl Debug for ServerRole
Source§impl<'de> Deserialize<'de> for ServerRole
impl<'de> Deserialize<'de> for ServerRole
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ServerRole
impl PartialEq for ServerRole
Source§impl Serialize for ServerRole
impl Serialize for ServerRole
impl Eq for ServerRole
impl StructuralPartialEq for ServerRole
Auto Trait Implementations§
impl Freeze for ServerRole
impl RefUnwindSafe for ServerRole
impl Send for ServerRole
impl Sync for ServerRole
impl Unpin for ServerRole
impl UnwindSafe for ServerRole
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.