pub struct AuthResponse {
pub status: String,
pub response_data: Option<AuthResponseData>,
pub exception: Option<ExceptionInfo>,
}Expand description
Authentication response from Exasol server.
Fields§
§status: String§response_data: Option<AuthResponseData>§exception: Option<ExceptionInfo>Implementations§
Source§impl AuthResponse
impl AuthResponse
Sourcepub fn is_success(&self) -> bool
pub fn is_success(&self) -> bool
Check if authentication was successful.
Sourcepub fn session_id(&self) -> Option<&str>
pub fn session_id(&self) -> Option<&str>
Get the session ID if authentication was successful.
Sourcepub fn error_message(&self) -> Option<String>
pub fn error_message(&self) -> Option<String>
Get error message if authentication failed.
Trait Implementations§
Source§impl Clone for AuthResponse
impl Clone for AuthResponse
Source§fn clone(&self) -> AuthResponse
fn clone(&self) -> AuthResponse
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 AuthResponse
impl Debug for AuthResponse
Source§impl<'de> Deserialize<'de> for AuthResponse
impl<'de> Deserialize<'de> for AuthResponse
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 AuthResponse
impl RefUnwindSafe for AuthResponse
impl Send for AuthResponse
impl Sync for AuthResponse
impl Unpin for AuthResponse
impl UnsafeUnpin for AuthResponse
impl UnwindSafe for AuthResponse
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