pub struct Authenticator { /* private fields */ }
Expand description
Generic CDRS authenticator structure.
Implementations§
Source§impl Authenticator
impl Authenticator
Sourcepub fn get_auth_token(&self) -> CBytes
pub fn get_auth_token(&self) -> CBytes
Returns authentication token wich will be used by a DB server for session authorisation.
Sourcepub fn get_cassandra_name(&self) -> Option<String>
pub fn get_cassandra_name(&self) -> Option<String>
Returns authentication method name. CDRS will use it to match with a method requested by a DB server.
Trait Implementations§
Source§impl Into<Authenticator> for NoneAuthenticator
impl Into<Authenticator> for NoneAuthenticator
Source§fn into(self) -> Authenticator
fn into(self) -> Authenticator
Converts this type into the (usually inferred) input type.
Source§impl Into<Authenticator> for PasswordAuthenticator
impl Into<Authenticator> for PasswordAuthenticator
Source§fn into(self) -> Authenticator
fn into(self) -> Authenticator
Converts this type into the (usually inferred) input type.
Auto Trait Implementations§
impl Freeze for Authenticator
impl RefUnwindSafe for Authenticator
impl Send for Authenticator
impl Sync for Authenticator
impl Unpin for Authenticator
impl UnwindSafe for Authenticator
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