pub struct Config {
pub servers: Vec<ServerInstance>,
pub rcon: RconConfig,
pub server: ServerConfig,
pub backup: BackupConfig,
pub notification: NotificationConfig,
pub jvm: JvmConfig,
pub mc_status: McStatusConfig,
pub schedules: Vec<ScheduleEntry>,
pub watchdog: WatchdogConfig,
pub lazy_start: LazyStartConfig,
}Fields§
§servers: Vec<ServerInstance>§rcon: RconConfig§server: ServerConfig§backup: BackupConfig§notification: NotificationConfig§jvm: JvmConfig§mc_status: McStatusConfig§schedules: Vec<ScheduleEntry>§watchdog: WatchdogConfig§lazy_start: LazyStartConfigImplementations§
Source§impl Config
impl Config
Sourcepub fn get_servers(&self) -> Vec<ServerInstance>
pub fn get_servers(&self) -> Vec<ServerInstance>
Returns the list of active server instances. If [[servers]] is configured, returns those. Otherwise, falls back to the legacy single-server config.
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>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnsafeUnpin 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
Mutably borrows from an owned value. Read more