diff --git a/src/api/transit/requests.rs b/src/api/transit/requests.rs index 0bb6674..b43bcba 100644 --- a/src/api/transit/requests.rs +++ b/src/api/transit/requests.rs @@ -38,7 +38,7 @@ pub struct CreateKeyRequest { /// Specifies if key derivation is to be used. If enabled, all /// encrypt/decrypt requests to this named key must provide a context which /// is used for key derivation. - pub derive: Option, + pub derived: Option, /// Enables keys to be exportable. This allows for all the valid keys in the /// key ring to be exported. Once set, this cannot be disabled. pub exportable: Option, diff --git a/src/lib.rs b/src/lib.rs index 2fe3eb9..da82f84 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -28,7 +28,7 @@ //! ## Installation //! //! Add vaultrs as a dependency to your cargo.toml: -//! ```ignore +//! ```toml //! [dependencies] //! vaultrs = "0.7.0" //! ``` diff --git a/tests/transit.rs b/tests/transit.rs index 754cd2b..1de1d6d 100644 --- a/tests/transit.rs +++ b/tests/transit.rs @@ -58,7 +58,7 @@ mod key { &endpoint.keys.export, Some( CreateKeyRequest::builder() - .derive(true) + .derived(true) .exportable(true) .allow_plaintext_backup(true) .key_type(KeyType::Aes256Gcm96) @@ -83,7 +83,7 @@ mod key { &endpoint.keys.signing, Some( CreateKeyRequest::builder() - .derive(true) + .derived(true) .key_type(KeyType::Ed25519), ), )