nominal_api_conjure/conjure/errors/authorization/
no_membership.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 conjure_object::log_safety::derive::LogSafe
13)]
14#[serde(crate = "conjure_object::serde")]
15#[conjure_object::private::staged_builder::staged_builder]
16#[builder(crate = conjure_object::private::staged_builder, update, inline)]
17pub struct NoMembership {}
18impl NoMembership {
19 #[inline]
21 pub fn new() -> Self {
22 Self::builder().build()
23 }
24}
25impl conjure_error::ErrorType for NoMembership {
26 #[inline]
27 fn code() -> conjure_error::ErrorCode {
28 conjure_error::ErrorCode::PermissionDenied
29 }
30 #[inline]
31 fn name() -> &'static str {
32 "Authorization:NoMembership"
33 }
34 #[inline]
35 fn safe_args() -> &'static [&'static str] {
36 &[]
37 }
38}