Struct DatapackSnapshotRegistry
pub struct DatapackSnapshotRegistry {
pub key: String,
pub fields: Vec<DatapackField>,
pub entries: Vec<DatapackSnapshotEntry>,
}Expand description
One registry of a snapshot: its key, the schema the server decoded it with, and its entries sorted by id.
Fields§
§key: StringThe registry’s key (example:spell).
fields: Vec<DatapackField>The schema, which the client compares with its own declaration.
entries: Vec<DatapackSnapshotEntry>The entries, sorted by id.
Trait Implementations§
§impl Clone for DatapackSnapshotRegistry
impl Clone for DatapackSnapshotRegistry
§fn clone(&self) -> DatapackSnapshotRegistry
fn clone(&self) -> DatapackSnapshotRegistry
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for DatapackSnapshotRegistry
impl Debug for DatapackSnapshotRegistry
§impl PartialEq for DatapackSnapshotRegistry
impl PartialEq for DatapackSnapshotRegistry
impl StructuralPartialEq for DatapackSnapshotRegistry
Auto Trait Implementations§
impl Freeze for DatapackSnapshotRegistry
impl RefUnwindSafe for DatapackSnapshotRegistry
impl Send for DatapackSnapshotRegistry
impl Sync for DatapackSnapshotRegistry
impl Unpin for DatapackSnapshotRegistry
impl UnsafeUnpin for DatapackSnapshotRegistry
impl UnwindSafe for DatapackSnapshotRegistry
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