pub struct Genesis {
pub operator: String,
pub name: String,
pub currency: String,
pub created: u64,
pub confirmations: u64,
pub extra: Map<String, Value>,
}Expand description
A ledger’s genesis: what is fixed at creation and hashed into its
identity. Fields another writer adds are kept in extra, so a ledger
written elsewhere hashes here as it hashes there.
Fields§
§operator: StringThe operator’s account, did:nostr:<x>: who holds the deposits and
writes the ledger.
name: StringThe ledger’s name, 1 to MAX_NAME characters.
currency: StringThe chain the amounts are on (txbt4).
created: u64Unix seconds at creation.
confirmations: u64How deep a deposit must be before it is credited.
extra: Map<String, Value>Fields this crate does not name, kept for the hash.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Genesis
impl<'de> Deserialize<'de> for Genesis
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 Genesis
impl StructuralPartialEq for Genesis
Auto Trait Implementations§
impl Freeze for Genesis
impl RefUnwindSafe for Genesis
impl Send for Genesis
impl Sync for Genesis
impl Unpin for Genesis
impl UnsafeUnpin for Genesis
impl UnwindSafe for Genesis
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.