pub struct NormalizedCacheOptions {
pub custom_keys: Option<HashMap<&'static str, String, FnvBuildHasher>>,
}Expand description
Options to pass to the normalized cache.
Fields§
§custom_keys: Option<HashMap<&'static str, String, FnvBuildHasher>>An optional HashMap of typenames to unique ID keys.
The keys are the names of the fields, not the IDs themselves.
So if your User has a unique ID called ident, you should
set "User" => "ident".
The default ID keys are id and _id, so those don’t need to be mapped.
Trait Implementations§
Source§impl Default for NormalizedCacheOptions
impl Default for NormalizedCacheOptions
Source§fn default() -> NormalizedCacheOptions
fn default() -> NormalizedCacheOptions
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for NormalizedCacheOptions
impl RefUnwindSafe for NormalizedCacheOptions
impl Send for NormalizedCacheOptions
impl Sync for NormalizedCacheOptions
impl Unpin for NormalizedCacheOptions
impl UnwindSafe for NormalizedCacheOptions
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