pub struct ExceptionPathSegment {
pub negate: Option<bool>,
pub names: Vec<String>,
}
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: Option<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.
Trait Implementations§
Source§impl Clone for ExceptionPathSegment
impl Clone for ExceptionPathSegment
Source§fn clone(&self) -> ExceptionPathSegment
fn clone(&self) -> ExceptionPathSegment
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 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
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