pub struct MqttContext {
pub client_id: Option<String>,
pub password: Option<Bytes>,
pub username: Option<String>,
}Expand description
Specifies the MQTT context to use for the test authorizer request
Fields§
§client_id: Option<String>The value of the clientId key in an MQTT authorization request.
password: Option<Bytes>The value of the password key in an MQTT authorization request.
username: Option<String>The value of the username key in an MQTT authorization request.
Trait Implementations§
Source§impl Clone for MqttContext
impl Clone for MqttContext
Source§fn clone(&self) -> MqttContext
fn clone(&self) -> MqttContext
Returns a duplicate of the value. Read more
1.0.0 · 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 MqttContext
impl Debug for MqttContext
Source§impl Default for MqttContext
impl Default for MqttContext
Source§fn default() -> MqttContext
fn default() -> MqttContext
Returns the “default value” for a type. Read more
Source§impl PartialEq for MqttContext
impl PartialEq for MqttContext
Source§impl Serialize for MqttContext
impl Serialize for MqttContext
impl StructuralPartialEq for MqttContext
Auto Trait Implementations§
impl !Freeze for MqttContext
impl RefUnwindSafe for MqttContext
impl Send for MqttContext
impl Sync for MqttContext
impl Unpin for MqttContext
impl UnwindSafe for MqttContext
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