valensas / rust-vault Goto Github PK
View Code? Open in Web Editor NEWLicense: MIT License
License: MIT License
during inserting sample code was panicked:
thread 'main' panicked at 'called Result::unwrap()
on an Err
value: RestClientError { source: ResponseParseError { source: EOF while parsing a value at line 1 column 0, content: Some("") } }', src/main.rs:20:58
it is
vault_service.insert(secret_key, secret_value).await.unwrap();
tcp stream meanwhile:
POST /v1/secret/data/testzxc HTTP/1.1
x-vault-token: hvs.MySexyToken
accept: /
host: localhost:8200
content-length: 24
{"data":{"name":"data"}}
HTTP/1.1 204 No Content
Cache-Control: no-store
Content-Type: application/json
Strict-Transport-Security: max-age=31536000; includeSubDomains
Date: Wed, 19 Jul 2023 13:13:03 GMT
Hey
I have added valensas-vault = "0.1.5" in cargo.toml
Taking ur sample from docs.rs.
Getting compilation error:
error[E0277]: the trait bound for<'de> TestData: serde::de::Deserialize<'de>
is not satisfied
--> src/main.rs:24:38
|
24 | let value = vault_service.read::(secret_key).await.unwrap();
| ^^^^^^^^ the trait for<'de> serde::de::Deserialize<'de>
is not implemented for TestData
rror[E0752]: `main` function is not allowed to be `async`
--> src/main.rs:11:1
|
11 | async fn main() {
| ^^^^^^^^^^^^^^^ main
function is not allowed to be async
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.