pub struct SkipDirective {
pub languages: Vec<String>,
pub reason: Option<String>,
}Expand description
Skip directive for conditionally excluding fixtures.
Fields§
§languages: Vec<String>Languages to skip (empty means skip all).
reason: Option<String>Human-readable reason for skipping.
Implementations§
Source§impl SkipDirective
impl SkipDirective
Sourcepub fn should_skip(&self, language: &str) -> bool
pub fn should_skip(&self, language: &str) -> bool
Check if this fixture should be skipped for a given language.
Trait Implementations§
Source§impl Clone for SkipDirective
impl Clone for SkipDirective
Source§fn clone(&self) -> SkipDirective
fn clone(&self) -> SkipDirective
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 SkipDirective
impl Debug for SkipDirective
Source§impl<'de> Deserialize<'de> for SkipDirective
impl<'de> Deserialize<'de> for SkipDirective
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 SkipDirective
impl RefUnwindSafe for SkipDirective
impl Send for SkipDirective
impl Sync for SkipDirective
impl Unpin for SkipDirective
impl UnsafeUnpin for SkipDirective
impl UnwindSafe for SkipDirective
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