Struct DatapackEntry
pub struct DatapackEntry {
pub values: Vec<(String, DatapackValue)>,
}Expand description
A decoded entry: one value per schema field, in the schema’s order.
Fields§
§values: Vec<(String, DatapackValue)>(field name, value) in schema order.
Implementations§
§impl DatapackEntry
impl DatapackEntry
pub fn get(&self, name: &str) -> Option<&DatapackValue>
pub fn get(&self, name: &str) -> Option<&DatapackValue>
The value of the field name.
Trait Implementations§
§impl Clone for DatapackEntry
impl Clone for DatapackEntry
§fn clone(&self) -> DatapackEntry
fn clone(&self) -> DatapackEntry
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 DatapackEntry
impl Debug for DatapackEntry
§impl PartialEq for DatapackEntry
impl PartialEq for DatapackEntry
impl StructuralPartialEq for DatapackEntry
Auto Trait Implementations§
impl Freeze for DatapackEntry
impl RefUnwindSafe for DatapackEntry
impl Send for DatapackEntry
impl Sync for DatapackEntry
impl Unpin for DatapackEntry
impl UnsafeUnpin for DatapackEntry
impl UnwindSafe for DatapackEntry
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