pub enum IdentityCard {
Person {
user_id: Option<String>,
imported_from: Option<String>,
about: Option<String>,
},
Mayor {
name: Option<String>,
},
}Expand description
One identity card’s values (crates/wire/spec/Answer/Identity.lean §8-59).
Each key is the card’s own: None removes it, which puts the default
name back. What a name may be is the city’s answer (city::Naming),
so a value here is the text the person typed.
Variants§
Person
PREFERENCES.md: what the city calls the person, the host the
name was imported from, and, when about is Some, the body
that says what every agent should know about them.
Mayor
MAYOR.md: what the Mayor is called. The body under the area is
left as it is.
Trait Implementations§
Source§impl Clone for IdentityCard
impl Clone for IdentityCard
Source§impl Debug for IdentityCard
impl Debug for IdentityCard
Source§impl<'de> Deserialize<'de> for IdentityCard
impl<'de> Deserialize<'de> for IdentityCard
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 IdentityCard
Source§impl PartialEq for IdentityCard
impl PartialEq for IdentityCard
Source§impl Serialize for IdentityCard
impl Serialize for IdentityCard
impl StructuralPartialEq for IdentityCard
Auto Trait Implementations§
impl Freeze for IdentityCard
impl RefUnwindSafe for IdentityCard
impl Send for IdentityCard
impl Sync for IdentityCard
impl Unpin for IdentityCard
impl UnsafeUnpin for IdentityCard
impl UnwindSafe for IdentityCard
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