pub enum GovernedDocument {
Mayor,
Clerk,
Preferences,
}Expand description
Which of the three documents that govern a city a PutDocument
frame carries.
A closed set rather than a path, because where these files live is the city’s answer and not the sender’s: all three sit in the city’s own reserved subtree, which no write domain reaches. A frame naming its own path would be a way to write anywhere inside the one place a resident may not edit.
Variants§
Mayor
Who the Mayor is: MAYOR.md.
Clerk
What the clerk answers by: CLERK.md.
Preferences
How this person wants their city run: PREFERENCES.md. It
belongs to no resident, which is why it sits beside the other two
rather than at somebody’s address.
Trait Implementations§
Source§impl Clone for GovernedDocument
impl Clone for GovernedDocument
impl Copy for GovernedDocument
Source§impl Debug for GovernedDocument
impl Debug for GovernedDocument
Source§impl<'de> Deserialize<'de> for GovernedDocument
impl<'de> Deserialize<'de> for GovernedDocument
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 GovernedDocument
Source§impl PartialEq for GovernedDocument
impl PartialEq for GovernedDocument
Source§impl Serialize for GovernedDocument
impl Serialize for GovernedDocument
impl StructuralPartialEq for GovernedDocument
Auto Trait Implementations§
impl Freeze for GovernedDocument
impl RefUnwindSafe for GovernedDocument
impl Send for GovernedDocument
impl Sync for GovernedDocument
impl Unpin for GovernedDocument
impl UnsafeUnpin for GovernedDocument
impl UnwindSafe for GovernedDocument
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