pub enum Who {
City,
Person,
Resident(Address),
}Expand description
The three parties a ledger line can be attributed to.
Every line of every history carries one of these, and until this
type existed each writer spelled its own: six call sites wrote the
literal "city" and a resident wrote its address, so a seventh
spelling was one keystroke away and nothing would have refused it.
The wire form is what the histories already hold. The city is
city, a person is person, and a resident is its address, exactly
as before; no ledger on disk has to be re-spelled for this type to
read it.
Variants§
City
The city’s desk: genesis, dispatch, truncation, relaying.
Person
A person, through a client.
Resident(Address)
A resident of a building, at the address it is known by.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Who
impl<'de> Deserialize<'de> for Who
Source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Who
Source§impl Ord for Who
impl Ord for Who
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialOrd for Who
impl PartialOrd for Who
impl StructuralPartialEq for Who
Auto Trait Implementations§
impl Freeze for Who
impl RefUnwindSafe for Who
impl Send for Who
impl Sync for Who
impl Unpin for Who
impl UnsafeUnpin for Who
impl UnwindSafe for Who
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