pub struct AuthRequest {
pub command: String,
pub username: String,
pub password: String,
pub use_compression: Option<bool>,
pub session_id: Option<String>,
pub client_name: Option<String>,
pub client_version: Option<String>,
pub driver_name: Option<String>,
pub attributes: Option<Value>,
}Expand description
Authentication request message for Exasol protocol.
Fields§
§command: String§username: String§password: String§use_compression: Option<bool>§session_id: Option<String>§client_name: Option<String>§client_version: Option<String>§driver_name: Option<String>§attributes: Option<Value>Implementations§
Source§impl AuthRequest
impl AuthRequest
Sourcepub fn with_client_info(self, name: String, version: String) -> Self
pub fn with_client_info(self, name: String, version: String) -> Self
Set client information.
Sourcepub fn with_session_id(self, session_id: String) -> Self
pub fn with_session_id(self, session_id: String) -> Self
Set session ID for reconnection.
Sourcepub fn with_compression(self, enabled: bool) -> Self
pub fn with_compression(self, enabled: bool) -> Self
Enable compression.
Sourcepub fn with_attributes(self, attributes: Value) -> Self
pub fn with_attributes(self, attributes: Value) -> Self
Add custom attributes.
Trait Implementations§
Source§impl Debug for AuthRequest
impl Debug for AuthRequest
Source§impl<'de> Deserialize<'de> for AuthRequest
impl<'de> Deserialize<'de> for AuthRequest
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
Source§impl Display for AuthRequest
impl Display for AuthRequest
Auto Trait Implementations§
impl Freeze for AuthRequest
impl RefUnwindSafe for AuthRequest
impl Send for AuthRequest
impl Sync for AuthRequest
impl Unpin for AuthRequest
impl UnsafeUnpin for AuthRequest
impl UnwindSafe for AuthRequest
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