pub struct SchemaPath { /* private fields */ }Expand description
Path from a root type to a specific location in the schema tree.
Formatted as RootType.field.nested_field or RootType::Variant.field.
Implementations§
Source§impl SchemaPath
impl SchemaPath
pub fn new() -> Self
Sourcepub fn push_front(&mut self, segment: PathSegment)
pub fn push_front(&mut self, segment: PathSegment)
Prepend a segment to the front of the path.
pub fn with_front(self, segment: PathSegment) -> Self
Trait Implementations§
Source§impl Clone for SchemaPath
impl Clone for SchemaPath
Source§fn clone(&self) -> SchemaPath
fn clone(&self) -> SchemaPath
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 SchemaPath
impl Debug for SchemaPath
Source§impl Default for SchemaPath
impl Default for SchemaPath
Source§fn default() -> SchemaPath
fn default() -> SchemaPath
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SchemaPath
impl RefUnwindSafe for SchemaPath
impl Send for SchemaPath
impl Sync for SchemaPath
impl Unpin for SchemaPath
impl UnsafeUnpin for SchemaPath
impl UnwindSafe for SchemaPath
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