pub struct ConfigResult {
pub addr: String,
pub port: String,
pub upstream: String,
pub upstream_override: Option<String>,
pub cache_dir: String,
pub cache_shared: bool,
pub config_path: String,
pub sync_available: bool,
}Expand description
control.config.get — the node’s effective configuration.
Fields§
§addr: StringThe bound host:port.
port: StringThe bound port, as a string.
upstream: StringThe effective upstream DIG RPC.
upstream_override: Option<String>The persisted upstream override, or null when unset.
cache_dir: StringThe cache directory.
Whether the cache is the machine-wide shared cache.
config_path: StringThe node’s config.json path.
sync_available: boolWhether authenticated §21 sync is available.
Trait Implementations§
Source§impl Clone for ConfigResult
impl Clone for ConfigResult
Source§fn clone(&self) -> ConfigResult
fn clone(&self) -> ConfigResult
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 ConfigResult
impl Debug for ConfigResult
Source§impl<'de> Deserialize<'de> for ConfigResult
impl<'de> Deserialize<'de> for ConfigResult
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
impl Eq for ConfigResult
Source§impl PartialEq for ConfigResult
impl PartialEq for ConfigResult
Source§impl Serialize for ConfigResult
impl Serialize for ConfigResult
impl StructuralPartialEq for ConfigResult
Auto Trait Implementations§
impl Freeze for ConfigResult
impl RefUnwindSafe for ConfigResult
impl Send for ConfigResult
impl Sync for ConfigResult
impl Unpin for ConfigResult
impl UnsafeUnpin for ConfigResult
impl UnwindSafe for ConfigResult
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