pub struct MirrorBondKey {
pub store_id: String,
pub root: String,
}Expand description
The (store_id, root) pair that identifies one mirror bond — the read’s sort key and its cursor.
A composite key rather than an opaque string, because the order it names is the contract’s own
(ascending store_id, then ascending root) and a caller resuming a walk can check its position
rather than trust an encoding it cannot read.
Fields§
§store_id: StringThe store id — LOWERCASE 64-hex, unprefixed.
The canonical form is part of the key’s contract rather than a formatting preference: the
order this key names is ascending over these STRINGS, and uppercase hex sorts differently
from lowercase, so two producers spelling it differently would disagree on the order and
after would mean two different positions. A 0x prefix is TOLERATED on input to
MirrorBondStatesParams and normalized away; it
is never emitted.
root: StringThe root — LOWERCASE 64-hex, unprefixed, on the same terms as store_id.
Trait Implementations§
Source§impl Clone for MirrorBondKey
impl Clone for MirrorBondKey
Source§fn clone(&self) -> MirrorBondKey
fn clone(&self) -> MirrorBondKey
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more