pub struct DroneConfig {
pub drone_id: Option<DroneId>,
pub db_path: PathBuf,
pub cluster_domain: String,
pub nats: Option<NatsConnectionSpec>,
pub cert: Option<KeyCertPathPair>,
pub acme: Option<AcmeConfiguration>,
pub agent: Option<AgentOptions>,
pub proxy: Option<ProxyOptions>,
}Fields§
§drone_id: Option<DroneId>Unique string used to identify this drone. If not provided, a UUID is generated.
db_path: PathBufPath to use for the sqlite3 database through which the agent and proxy share a persisted state.
cluster_domain: StringThe domain to which this drone belongs.
nats: Option<NatsConnectionSpec>How to connect to NATS. Required by agent and certificate refresh.
cert: Option<KeyCertPathPair>Paths to certificate and private key files. Required by proxy and certificate refresh.
acme: Option<AcmeConfiguration>Settings for ACME certificate refresh. If not provided, certificates are not refreshed by this drone process.
agent: Option<AgentOptions>Settings for the agent. If not provided, the agent does not run in this drone process.
proxy: Option<ProxyOptions>Settings for the proxy. If not provided, the proxy does not run in this drone process.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for DroneConfig
impl<'de> Deserialize<'de> for DroneConfig
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 DroneConfig
impl RefUnwindSafe for DroneConfig
impl Send for DroneConfig
impl Sync for DroneConfig
impl Unpin for DroneConfig
impl UnwindSafe for DroneConfig
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more