Struct server_forge::config::Config
source · pub struct Config {
pub linux_distro: String,
pub server_role: String,
pub security_level: String,
pub monitoring: bool,
pub backup_frequency: String,
pub deployed_apps: Vec<String>,
pub custom_firewall_rules: Vec<String>,
pub update_schedule: String,
pub use_containers: bool,
pub use_kubernetes: bool,
}
Expand description
Represents the configuration for the server setup and maintenance tool.
This struct contains all the necessary settings and options for configuring a server, including the operating system, security settings, and deployment options.
Fields§
§linux_distro: String
The Linux distribution being used (e.g., “ubuntu”, “centos”, “fedora”)
server_role: String
The role of the server (e.g., “web”, “database”, “application”)
security_level: String
The desired security level (e.g., “basic”, “intermediate”, “advanced”)
monitoring: bool
Whether to enable monitoring on the server
backup_frequency: String
The frequency of backups (e.g., “hourly”, “daily”, “weekly”)
deployed_apps: Vec<String>
A list of applications to be deployed on the server
custom_firewall_rules: Vec<String>
A list of custom firewall rules to be applied
update_schedule: String
The schedule for automatic updates (e.g., “daily”, “weekly”, “monthly”)
use_containers: bool
Whether to use containerization for deployments
use_kubernetes: bool
Whether to use Kubernetes for container orchestration
Trait Implementations§
source§impl<'de> Deserialize<'de> for Config
impl<'de> Deserialize<'de> for Config
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>,
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)