pub struct GovernanceAnswer {
pub autonomy: Autonomy,
pub decided: Vec<Decision>,
}Expand description
Who answers for this city, and what was answered on the person’s behalf.
One shape for both halves: a list of decisions with nobody named beside it does not say whether the person delegated them, and a delegation with nothing under it does not say whether it was ever used.
Fields§
§autonomy: Autonomy§decided: Vec<Decision>Every approval this city has answered, oldest first — the order the ledger wrote them and the order a fold expects.
The person’s own answers are here too. A list holding only what somebody else decided would make “I answered this” and “nobody ever answered this” look the same, and who may answer is the other field of this same answer.
Trait Implementations§
Source§impl Clone for GovernanceAnswer
impl Clone for GovernanceAnswer
Source§impl Debug for GovernanceAnswer
impl Debug for GovernanceAnswer
Source§impl<'de> Deserialize<'de> for GovernanceAnswer
impl<'de> Deserialize<'de> for GovernanceAnswer
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for GovernanceAnswer
Source§impl PartialEq for GovernanceAnswer
impl PartialEq for GovernanceAnswer
Source§impl Serialize for GovernanceAnswer
impl Serialize for GovernanceAnswer
impl StructuralPartialEq for GovernanceAnswer
Auto Trait Implementations§
impl Freeze for GovernanceAnswer
impl RefUnwindSafe for GovernanceAnswer
impl Send for GovernanceAnswer
impl Sync for GovernanceAnswer
impl Unpin for GovernanceAnswer
impl UnsafeUnpin for GovernanceAnswer
impl UnwindSafe for GovernanceAnswer
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