pub struct KeyedList<'a> {
pub prefix: &'a str,
pub slug_field: &'a str,
}Expand description
Declares that an array at prefix is keyed by slug_field.
Example: KeyedList { prefix: "identities", slug_field: "identity" }
enables path identities.me.email to find the element where
element["identity"] == "me", then read/write element["email"].
Fields§
§prefix: &'a str§slug_field: &'a strTrait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for KeyedList<'a>
impl<'a> RefUnwindSafe for KeyedList<'a>
impl<'a> Send for KeyedList<'a>
impl<'a> Sync for KeyedList<'a>
impl<'a> Unpin for KeyedList<'a>
impl<'a> UnsafeUnpin for KeyedList<'a>
impl<'a> UnwindSafe for KeyedList<'a>
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