pub enum Autonomy {
Owner,
Delegate(ResidentId),
}Expand description
Who answers the Approval Inbox (9.2). Two states, because a question either waits for the person or goes straight to the resident they appointed; there is no third state in which nobody answers, since “nobody answered yet” is what an unanswered item already says.
Never touches gate decisions: the gates answer from the rules, and who reads the inbox cannot change what a rule says.
Variants§
Owner
Delegate(ResidentId)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Autonomy
impl<'de> Deserialize<'de> for Autonomy
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<Autonomy, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<Autonomy, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Autonomy
Source§impl Serialize for Autonomy
impl Serialize for Autonomy
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for Autonomy
Auto Trait Implementations§
impl Freeze for Autonomy
impl RefUnwindSafe for Autonomy
impl Send for Autonomy
impl Sync for Autonomy
impl Unpin for Autonomy
impl UnsafeUnpin for Autonomy
impl UnwindSafe for Autonomy
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more