pub struct CacheRecord {
pub index_fields: Vec<IndexField>,
pub number_fields: Vec<NumberField>,
pub string_fields: Vec<StringField>,
pub bool_fields: Vec<BoolField>,
}Expand description
Individual cache record containing field values.
Each record uses separate optional vectors for each value type because serde + quick-xml does not reliably roundtrip internally-tagged enums within a mixed-content element. This flat representation is simpler and still captures the data faithfully.
Fields§
§index_fields: Vec<IndexField>§number_fields: Vec<NumberField>§string_fields: Vec<StringField>§bool_fields: Vec<BoolField>Trait Implementations§
Source§impl Clone for CacheRecord
impl Clone for CacheRecord
Source§fn clone(&self) -> CacheRecord
fn clone(&self) -> CacheRecord
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CacheRecord
impl Debug for CacheRecord
Source§impl<'de> Deserialize<'de> for CacheRecord
impl<'de> Deserialize<'de> for CacheRecord
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
Source§impl PartialEq for CacheRecord
impl PartialEq for CacheRecord
Source§impl Serialize for CacheRecord
impl Serialize for CacheRecord
impl StructuralPartialEq for CacheRecord
Auto Trait Implementations§
impl Freeze for CacheRecord
impl RefUnwindSafe for CacheRecord
impl Send for CacheRecord
impl Sync for CacheRecord
impl Unpin for CacheRecord
impl UnwindSafe for CacheRecord
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