Compare commits
1 Commits
master
...
docs-crede
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5793a1b9a9 |
@@ -19,6 +19,9 @@ pub struct Credentials {
|
||||
|
||||
impl Credentials {
|
||||
/// Create a `Credentials` struct from username and password
|
||||
///
|
||||
/// When using [`Mechanism::Xoauth2`], `password` is the raw
|
||||
/// bearer access token.
|
||||
pub fn new(username: String, password: String) -> Credentials {
|
||||
Credentials {
|
||||
authentication_identity: username,
|
||||
|
||||
Reference in New Issue
Block a user