pub struct RulesChanged {
pub scope: Scope,
pub which: GoverningDocument,
pub before: Option<B3Hash>,
pub after: B3Hash,
pub bytes: usize,
}Expand description
rules_changed: a document a dispatch stands under holds other bytes
than the last line booked for it.
Never the text, for the reason GovernedDocumentWritten gives; the
two digests are what a replay compares instead. One line’s after
is the next line’s before for the same document as long as nothing
wrote it between them, so a gap in that chain says a hand reached the
file outside every door.
Fields§
§scope: ScopeWhat the document governs: the city, or one existing building.
which: GoverningDocumentWhich of the scope’s documents moved; a building holds both, so the scope alone cannot say.
before: Option<B3Hash>What the last line left the document as. Absent opens the document’s account rather than claiming a change that never was.
after: B3HashWhat the document is now.
bytes: usizeThe length of what now stands, in bytes.
Trait Implementations§
Source§impl Clone for RulesChanged
impl Clone for RulesChanged
Source§impl Debug for RulesChanged
impl Debug for RulesChanged
Source§impl<'de> Deserialize<'de> for RulesChanged
impl<'de> Deserialize<'de> for RulesChanged
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 RulesChanged
Source§impl PartialEq for RulesChanged
impl PartialEq for RulesChanged
Source§impl Serialize for RulesChanged
impl Serialize for RulesChanged
impl StructuralPartialEq for RulesChanged
Auto Trait Implementations§
impl Freeze for RulesChanged
impl RefUnwindSafe for RulesChanged
impl Send for RulesChanged
impl Sync for RulesChanged
impl Unpin for RulesChanged
impl UnsafeUnpin for RulesChanged
impl UnwindSafe for RulesChanged
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