We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Fetching server info at root doesn't return a structure.
let info: Info = client.info().send().await?.json().await?;
Currently I'm doing one of these:
let info: Value = client.info().send().await?.json().await?; println!("{}: {}", info["version"]["distribution"].as_str().unwrap(), info["version"]["number"].as_str().unwrap());
#[derive(Serialize, Deserialize)] struct Version { distribution: String, number: String } #[derive(Serialize, Deserialize)] struct Info { version: Version } let info: Info = client.info().send().await?.json().await?; println!("{}: {}", info.version.distribution, info.version.number);
Is there an existing better way, otherwise I'll try to queue up a PR. Also not sure what the right way to add this is, pointers appreciated.
The text was updated successfully, but these errors were encountered:
Hey! I'll work on the issue.
Sorry, something went wrong.
@Xtansia can i pick this next ?
draft: #187 with some questions
samuelorji
No branches or pull requests
Is your feature request related to a problem?
Fetching server info at root doesn't return a structure.
What solution would you like?
What alternatives have you considered?
Currently I'm doing one of these:
Is there an existing better way, otherwise I'll try to queue up a PR. Also not sure what the right way to add this is, pointers appreciated.
The text was updated successfully, but these errors were encountered: