Struct pravega_client_config::credentials::Credentials
source · pub struct Credentials { /* private fields */ }
Implementations§
source§impl Credentials
impl Credentials
pub fn basic(user_name: String, password: String) -> Self
pub fn basic_with_token(token: String) -> Self
pub fn keycloak(path: &str, disable_cert_verification: bool) -> Self
pub fn keycloak_from_json_string( json: &str, disable_cert_verification: bool ) -> Self
pub async fn get_request_metadata(&self) -> String
pub fn is_expired(&self) -> bool
Trait Implementations§
source§impl Clone for Credentials
impl Clone for Credentials
Auto Trait Implementations§
impl !RefUnwindSafe for Credentials
impl Send for Credentials
impl Sync for Credentials
impl Unpin for Credentials
impl !UnwindSafe for Credentials
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