pub struct Segment {
pub name: &'static str,
pub kind: SegmentKind,
}Expand description
One level of a document path — a field name plus how it’s stored.
Fields§
§name: &'static strThe field name at this level (a single path segment, not dotted).
kind: SegmentKindWhether this level is a flattened object or a nested boundary.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Segment
impl RefUnwindSafe for Segment
impl Send for Segment
impl Sync for Segment
impl Unpin for Segment
impl UnsafeUnpin for Segment
impl UnwindSafe for Segment
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