fixed incorrect prop name on private type
@@ -74,7 +74,7 @@ pub(crate) struct KeyVaultGetSecretResponseAttributes {
enabled: bool,
#[serde(default)]
#[serde(with = "ts_seconds_option")]
- expires_on: Option<DateTime<Utc>>,
+ exp: Option<DateTime<Utc>>,
#[serde(with = "ts_seconds")]
created: DateTime<Utc>,
#[serde(with = "ts_seconds")]
@@ -110,7 +110,7 @@ pub struct KeyVaultSecret {
id: String,
value: String,
enabled: bool,
- expiry: Option<DateTime<Utc>>,
+ expires_on: Option<DateTime<Utc>>,
time_created: DateTime<Utc>,
time_updated: DateTime<Utc>,
}
@@ -183,7 +183,7 @@ impl<'a, T: TokenCredential> KeyClient<'a, T> {
}
})?;
Ok(KeyVaultSecret {
- expiry: response.attributes.expires_on,
+ expires_on: response.attributes.exp,
enabled: response.attributes.enabled,
value: response.value,
time_created: response.attributes.created,
