pub struct RemoteConfigSettings {
pub url: Option<String>,
pub token_key: Option<String>,
}Expand description
Remote configuration endpoint settings.
Fetches TOML configuration from a remote URL on startup and merges it with the local config. Remote values override local values.
§Example
[remote_config]
url = "https://example.com/api/devboy-config"
token_key = "remote_config.token"Or via environment variables:
DEVBOY_REMOTE_CONFIG_URL— Remote config URLDEVBOY_REMOTE_CONFIG_TOKEN— Bearer token for authentication
Fields§
§url: Option<String>URL to fetch remote TOML config from.
token_key: Option<String>Keychain key for the Bearer token (e.g., “remote_config.token”).
Trait Implementations§
Source§impl Clone for RemoteConfigSettings
impl Clone for RemoteConfigSettings
Source§fn clone(&self) -> RemoteConfigSettings
fn clone(&self) -> RemoteConfigSettings
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 RemoteConfigSettings
impl Debug for RemoteConfigSettings
Source§impl Default for RemoteConfigSettings
impl Default for RemoteConfigSettings
Source§fn default() -> RemoteConfigSettings
fn default() -> RemoteConfigSettings
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for RemoteConfigSettings
impl<'de> Deserialize<'de> for RemoteConfigSettings
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 RemoteConfigSettings
impl RefUnwindSafe for RemoteConfigSettings
impl Send for RemoteConfigSettings
impl Sync for RemoteConfigSettings
impl Unpin for RemoteConfigSettings
impl UnsafeUnpin for RemoteConfigSettings
impl UnwindSafe for RemoteConfigSettings
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