pub struct Emqx {
pub api_key: Option<String>,
pub api_secret: Option<String>,
pub hosts: Option<Vec<MqHost>>,
}
Expand description
Configurations for EMQX.
Fields§
§api_key: Option<String>
Management API key.
api_secret: Option<String>
Management password. Default is public.
hosts: Option<Vec<MqHost>>
Available hosts. None or empty means unlimited.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Emqx
impl<'de> Deserialize<'de> for Emqx
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 Emqx
impl RefUnwindSafe for Emqx
impl Send for Emqx
impl Sync for Emqx
impl Unpin for Emqx
impl UnwindSafe for Emqx
Blanket Implementations§
Source§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
Source§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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