#[derive(
Debug,
Clone,
conjure_object::serde::Serialize,
conjure_object::serde::Deserialize,
PartialEq,
Eq,
PartialOrd,
Ord,
Hash
)]
#[serde(crate = "conjure_object::serde")]
#[conjure_object::private::staged_builder::staged_builder]
#[builder(crate = conjure_object::private::staged_builder, update, inline)]
pub struct DecryptedSecret {
#[serde(rename = "rid")]
rid: super::SecretRid,
#[builder(into)]
#[serde(rename = "name")]
name: String,
#[builder(into)]
#[serde(rename = "description")]
description: String,
#[builder(into)]
#[serde(rename = "decryptedValue")]
decrypted_value: String,
#[serde(rename = "createdBy")]
created_by: conjure_object::ResourceIdentifier,
#[builder(
default,
map(
key(type = super::super::super::api::PropertyName),
value(type = super::super::super::api::PropertyValue)
)
)]
#[serde(
rename = "properties",
skip_serializing_if = "std::collections::BTreeMap::is_empty",
default
)]
properties: std::collections::BTreeMap<
super::super::super::api::PropertyName,
super::super::super::api::PropertyValue,
>,
#[builder(default, set(item(type = super::super::super::api::Label)))]
#[serde(
rename = "labels",
skip_serializing_if = "std::collections::BTreeSet::is_empty",
default
)]
labels: std::collections::BTreeSet<super::super::super::api::Label>,
#[serde(rename = "createdAt")]
created_at: conjure_object::DateTime<conjure_object::Utc>,
#[serde(rename = "isArchived")]
is_archived: bool,
}
impl DecryptedSecret {
#[inline]
pub fn rid(&self) -> &super::SecretRid {
&self.rid
}
#[inline]
pub fn name(&self) -> &str {
&*self.name
}
#[inline]
pub fn description(&self) -> &str {
&*self.description
}
#[inline]
pub fn decrypted_value(&self) -> &str {
&*self.decrypted_value
}
#[inline]
pub fn created_by(&self) -> &conjure_object::ResourceIdentifier {
&self.created_by
}
#[inline]
pub fn properties(
&self,
) -> &std::collections::BTreeMap<
super::super::super::api::PropertyName,
super::super::super::api::PropertyValue,
> {
&self.properties
}
#[inline]
pub fn labels(
&self,
) -> &std::collections::BTreeSet<super::super::super::api::Label> {
&self.labels
}
#[inline]
pub fn created_at(&self) -> conjure_object::DateTime<conjure_object::Utc> {
self.created_at
}
#[inline]
pub fn is_archived(&self) -> bool {
self.is_archived
}
}