pub enum DeploymentType {
Website,
Server {
port: u16,
binary_path: PathBuf,
},
Ethereum {
network_id: u32,
http_address: String,
ws_address: String,
external_ip: String,
wallet_address: String,
},
}Expand description
Type of deployment being configured
Defines the specific type of application or service being deployed, along with type-specific configuration parameters.
§Variants
Website: Static website deployment with nginx hostingServer: Binary server deployment with reverse proxyEthereum: Full Ethereum node deployment with geth
§Examples
use rumi2::config::DeploymentType;
use std::path::PathBuf;
// Website deployment
let website = DeploymentType::Website;
// Server deployment
let server = DeploymentType::Server {
port: 3000,
binary_path: PathBuf::from("/usr/local/bin/myapp"),
};
// Ethereum node deployment
let ethereum = DeploymentType::Ethereum {
network_id: 1,
http_address: "127.0.0.1".to_string(),
ws_address: "127.0.0.1".to_string(),
external_ip: "203.0.113.1".to_string(),
wallet_address: "0x742d35cc6ba45c8b6e23f9e2c0e9b7f7a2e8b2f1".to_string(),
};Variants§
Website
Static website deployment served by nginx
Server
Binary server deployment with reverse proxy configuration
Fields
Ethereum
Ethereum node deployment with full geth setup
Trait Implementations§
Source§impl Clone for DeploymentType
impl Clone for DeploymentType
Source§fn clone(&self) -> DeploymentType
fn clone(&self) -> DeploymentType
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 DeploymentType
impl Debug for DeploymentType
Source§impl<'de> Deserialize<'de> for DeploymentType
impl<'de> Deserialize<'de> for DeploymentType
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
Auto Trait Implementations§
impl Freeze for DeploymentType
impl RefUnwindSafe for DeploymentType
impl Send for DeploymentType
impl Sync for DeploymentType
impl Unpin for DeploymentType
impl UnwindSafe for DeploymentType
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