pub struct Auth { /* private fields */ }Implementations§
Source§impl Auth
impl Auth
pub fn new(registry_url: &str, skip_tls: bool) -> Result<Self>
pub async fn get_auth_challenge(&self) -> Result<Option<AuthChallenge>>
pub async fn get_token_for_repository( &self, challenge: &AuthChallenge, username: &str, password: &str, repository: &str, ) -> Result<String>
pub async fn get_token( &self, challenge: &AuthChallenge, username: &str, password: &str, repository: Option<&str>, ) -> Result<String>
pub async fn login( &self, username: &str, password: &str, ) -> Result<Option<String>>
pub async fn login_with_repository( &self, username: &str, password: &str, repository: &str, ) -> Result<Option<String>>
Auto Trait Implementations§
impl Freeze for Auth
impl !RefUnwindSafe for Auth
impl Send for Auth
impl Sync for Auth
impl Unpin for Auth
impl !UnwindSafe for Auth
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