pub struct JsonConfig {
pub secret: Option<String>,
pub server: Option<String>,
pub auth_option: Option<String>,
pub endpoint: Option<EndpointConfig>,
pub transport: Option<TransportConfig>,
pub logging: Option<LoggingConfig>,
}Expand description
JSON configuration file structure
Fields§
§secret: Option<String>§server: Option<String>§auth_option: Option<String>Authentication option for protocol extensions
endpoint: Option<EndpointConfig>§transport: Option<TransportConfig>§logging: Option<LoggingConfig>Implementations§
Source§impl JsonConfig
impl JsonConfig
Trait Implementations§
Source§impl Debug for JsonConfig
impl Debug for JsonConfig
Source§impl Default for JsonConfig
impl Default for JsonConfig
Source§fn default() -> JsonConfig
fn default() -> JsonConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for JsonConfig
impl<'de> Deserialize<'de> for JsonConfig
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 JsonConfig
impl RefUnwindSafe for JsonConfig
impl Send for JsonConfig
impl Sync for JsonConfig
impl Unpin for JsonConfig
impl UnsafeUnpin for JsonConfig
impl UnwindSafe for JsonConfig
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