pub struct LoadResult<T> {
pub value: T,
pub deserialization_errors: Vec<(&'static str, String)>,
pub unknown_fields: Vec<String>,
}
Expand description
Result of loading a struct from a key-value store. Contains the deserialized struct, any deserialization errors, and unknown fields.
Fields§
§value: T
The loaded struct instance
deserialization_errors: Vec<(&'static str, String)>
Fields that failed to deserialize, with field name and error message
unknown_fields: Vec<String>
Keys in the store that didn’t match any struct fields
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for LoadResult<T>where
T: Freeze,
impl<T> RefUnwindSafe for LoadResult<T>where
T: RefUnwindSafe,
impl<T> Send for LoadResult<T>where
T: Send,
impl<T> Sync for LoadResult<T>where
T: Sync,
impl<T> Unpin for LoadResult<T>where
T: Unpin,
impl<T> UnwindSafe for LoadResult<T>where
T: UnwindSafe,
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