nominal_api/conjure/errors/secrets/api/
unable_to_encrypt_secret.rs1#[derive(
2 Debug,
3 Clone,
4 conjure_object::serde::Serialize,
5 conjure_object::serde::Deserialize,
6 PartialEq,
7 Eq,
8 PartialOrd,
9 Ord,
10 Hash,
11 Copy
12)]
13#[serde(crate = "conjure_object::serde")]
14#[conjure_object::private::staged_builder::staged_builder]
15#[builder(crate = conjure_object::private::staged_builder, update, inline)]
16pub struct UnableToEncryptSecret {}
17impl UnableToEncryptSecret {
18 #[inline]
20 pub fn new() -> Self {
21 Self::builder().build()
22 }
23}
24impl conjure_error::ErrorType for UnableToEncryptSecret {
25 #[inline]
26 fn code() -> conjure_error::ErrorCode {
27 conjure_error::ErrorCode::FailedPrecondition
28 }
29 #[inline]
30 fn name() -> &'static str {
31 "Secrets:UnableToEncryptSecret"
32 }
33 #[inline]
34 fn safe_args() -> &'static [&'static str] {
35 &[]
36 }
37}