pub enum ExchangeLookupPath {
Body(Vec<PathSegment>),
Header(String),
Property(String),
Unscoped(String),
}Expand description
A parsed Exchange lookup path. See module docs for the grammar.
Variants§
Body(Vec<PathSegment>)
body.a.b.c — walk JSON tree via path segments. Empty vec means
“whole body” (corresponds to Simple ${body}).
Header(String)
header.some.name — flat key "some.name" (headers are flat maps).
Property(String)
property.some.name / exchangeProperty.some.name — flat key.
Unscoped(String)
foo — unscoped: try body JSON key (flat), then header (flat), then
property (flat). The full token is the key in each scope.
Implementations§
Trait Implementations§
Source§impl Clone for ExchangeLookupPath
impl Clone for ExchangeLookupPath
Source§fn clone(&self) -> ExchangeLookupPath
fn clone(&self) -> ExchangeLookupPath
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ExchangeLookupPath
impl Debug for ExchangeLookupPath
impl Eq for ExchangeLookupPath
Source§impl PartialEq for ExchangeLookupPath
impl PartialEq for ExchangeLookupPath
Source§fn eq(&self, other: &ExchangeLookupPath) -> bool
fn eq(&self, other: &ExchangeLookupPath) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ExchangeLookupPath
Auto Trait Implementations§
impl Freeze for ExchangeLookupPath
impl RefUnwindSafe for ExchangeLookupPath
impl Send for ExchangeLookupPath
impl Sync for ExchangeLookupPath
impl Unpin for ExchangeLookupPath
impl UnsafeUnpin for ExchangeLookupPath
impl UnwindSafe for ExchangeLookupPath
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