pub struct ExceptionPathSegment {
pub negate: bool,
pub names: Vec<String>,
/* private fields */
}
Expand description
An ExceptionPathSegment represents a segment in a path that is used to match leafs or nodes in a tree of exceptions.
If a segment consists of more than one name, it matches the names provided if ‘negate’ is false or missing or
it matches anything except the names provided if ‘negate’ is true.
Fields§
§negate: bool
If false or missing this segment matches the names provided, otherwise it matches anything except the names provided.
names: Vec<String>
Depending on the value of ‘negate’ the names that should match or not match.
Implementations§
Trait Implementations§
Source§impl Clone for ExceptionPathSegment
impl Clone for ExceptionPathSegment
Source§fn clone(&self) -> ExceptionPathSegment
fn clone(&self) -> ExceptionPathSegment
Returns a copy 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 ExceptionPathSegment
impl Debug for ExceptionPathSegment
Source§impl<'de> Deserialize<'de> for ExceptionPathSegment
impl<'de> Deserialize<'de> for ExceptionPathSegment
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ExceptionPathSegment
impl PartialEq for ExceptionPathSegment
Source§impl Serialize for ExceptionPathSegment
impl Serialize for ExceptionPathSegment
impl Eq for ExceptionPathSegment
impl StructuralPartialEq for ExceptionPathSegment
Auto Trait Implementations§
impl Freeze for ExceptionPathSegment
impl RefUnwindSafe for ExceptionPathSegment
impl Send for ExceptionPathSegment
impl Sync for ExceptionPathSegment
impl Unpin for ExceptionPathSegment
impl UnwindSafe for ExceptionPathSegment
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.