pub struct BasicCredential { /* private fields */ }Expand description
Type-separated Basic credential and immutable authentication scope.
Implementations§
Source§impl BasicCredential
impl BasicCredential
Sourcepub fn new(
username: BasicUsername,
password: BasicPassword,
scope: BasicCredentialScope,
) -> Result<Self, BasicCredentialError>
pub fn new( username: BasicUsername, password: BasicPassword, scope: BasicCredentialScope, ) -> Result<Self, BasicCredentialError>
Encodes a validated username/password pair with RFC 4648 padding.
Sourcepub fn from_mut_bytes(
username: &mut [u8],
password: &mut [u8],
scope: BasicCredentialScope,
) -> Result<Self, BasicCredentialError>
pub fn from_mut_bytes( username: &mut [u8], password: &mut [u8], scope: BasicCredentialScope, ) -> Result<Self, BasicCredentialError>
Validates mutable sources, clears both, and constructs one credential.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for BasicCredential
impl RefUnwindSafe for BasicCredential
impl Send for BasicCredential
impl Sync for BasicCredential
impl Unpin for BasicCredential
impl UnsafeUnpin for BasicCredential
impl UnwindSafe for BasicCredential
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