You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sdk/key_vault/src/key.rs
+14-10Lines changed: 14 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,8 @@ use crate::client::API_VERSION_PARAM;
12
12
usecrate::{KeyClient,KeyVaultError};
13
13
14
14
/// A KeyBundle consisting of a WebKey plus its attributes.
15
-
#[derive(Debug,Deserialize)]
15
+
#[derive(Debug,Deserialize,Getters)]
16
+
#[getset(get = "pub")]
16
17
pubstructKeyVaultKey{
17
18
/// The key management properties.
18
19
#[serde(flatten)]
@@ -364,27 +365,30 @@ mod tests {
364
365
.await
365
366
.unwrap();
366
367
367
-
letJsonWebKey{ id, n, .. } = key.key;
368
+
letJsonWebKey{ id, n, .. } = key.key();
368
369
letKeyProperties{
369
370
attributes,
370
371
managed,
371
372
tags,
372
-
} = key.properties;
373
+
} = key.properties();
373
374
letKeyAttributes{
374
375
created_on,
375
376
enabled,
376
377
updated_on,
377
378
..
378
379
} = attributes;
379
380
let expected_n = base64::decode_config("2HJAE5fU3Cw2Rt9hEuq-F6XjINKGa-zskfISVqopqUy60GOs2eyhxbWbJBeUXNor_gf-tXtNeuqeBgitLeVa640UDvnEjYTKWjCniTxZRaU7ewY8BfTSk-7KxoDdLsPSpX_MX4rwlAx-_1UGk5t4sQgTbm9T6Fm2oqFd37dsz5-Gj27UP2GTAShfJPFD7MqU_zIgOI0pfqsbNL5xTQVM29K6rX4jSPtylZV3uWJtkoQIQnrIHhk1d0SC0KwlBV3V7R_LVYjiXLyIXsFzSNYgQ68ZjAwt8iL7I8Osa-ehQLM13DVvLASaf7Jnu3sC3CWl3Gyirgded6cfMmswJzY87w",BASE64_URL_SAFE).unwrap();
let expected_sig = base64::decode_config("aKFG8NXcfTzqyR44rW42484K_zZI_T7zZuebvWuNgAoEI1gXYmxrshp42CunSmmu4oqo4-IrCikPkNIBkHXnAW2cv03Ad0UpwXhVfepK8zzDBaJPMKVGS-ZRz8CshEyGDKaLlb3J3zEkXpM3RrSEr0mdV6hndHD_mznLB5RmFui5DsKAhez4vUqajgtkgcPfCekMqeSwp6r9ItVL-gEoAohx8XMDsPedqu-7BuZcBcdayaPuBRL4wWoTDULA11P-UN_sJ5qMj3BbiRYhIlBWGR04wIGfZ3pkJjHJUpOvgH2QajdYPzUBauOCewMYbq9XkLRSzI_A7HkkDVycugSeAA",BASE64_URL_SAFE).unwrap();
0 commit comments