Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Builder pattern for Client initialization #53

Draft
wants to merge 3 commits into
base: feature/3.0
Choose a base branch
from

Conversation

ChrisMacNaughton
Copy link
Owner

No description provided.

@ChrisMacNaughton ChrisMacNaughton added this to the 3.0 milestone Apr 11, 2021
@ChrisMacNaughton ChrisMacNaughton marked this pull request as draft April 11, 2021 08:26
@@ -3,7 +3,7 @@ extern crate hashicorp_vault as vault;
fn main() {
let host = "http://localhost:8200";
let token = "test12345";
let client = vault::Client::new(host, token).unwrap();
let client: vault::Client<()> = vault::Client::new(host).token(token).build().unwrap();
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm quite frustrated with this change requiring specifying the T for the VaultClient

@ChrisMacNaughton ChrisMacNaughton force-pushed the feature/builder-initializer branch 4 times, most recently from 1e08b33 to 56dfce5 Compare April 11, 2021 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant