pub struct ReviewTargetPolicy {
pub excluded_exact_paths: Vec<String>,
}Expand description
Policy for selecting automatic review target files.
Fields§
§excluded_exact_paths: Vec<String>Exact package-relative paths to exclude from automatic target selection.
Implementations§
Source§impl ReviewTargetPolicy
impl ReviewTargetPolicy
Sourcepub fn excludes_exact_path(&self, package_relative_path: &str) -> bool
pub fn excludes_exact_path(&self, package_relative_path: &str) -> bool
Return true when this policy excludes the exact package-relative path.
Sourcepub fn excludes_path(&self, package_relative_path: &Path) -> bool
pub fn excludes_path(&self, package_relative_path: &Path) -> bool
Return true when this policy excludes the package-relative path.
Trait Implementations§
Source§impl Clone for ReviewTargetPolicy
impl Clone for ReviewTargetPolicy
Source§fn clone(&self) -> ReviewTargetPolicy
fn clone(&self) -> ReviewTargetPolicy
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 ReviewTargetPolicy
impl Debug for ReviewTargetPolicy
Source§impl Default for ReviewTargetPolicy
impl Default for ReviewTargetPolicy
Source§fn default() -> ReviewTargetPolicy
fn default() -> ReviewTargetPolicy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ReviewTargetPolicy
impl<'de> Deserialize<'de> for ReviewTargetPolicy
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 Hash for ReviewTargetPolicy
impl Hash for ReviewTargetPolicy
Source§impl PartialEq for ReviewTargetPolicy
impl PartialEq for ReviewTargetPolicy
Source§fn eq(&self, other: &ReviewTargetPolicy) -> bool
fn eq(&self, other: &ReviewTargetPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for ReviewTargetPolicy
impl Serialize for ReviewTargetPolicy
impl Eq for ReviewTargetPolicy
impl StructuralPartialEq for ReviewTargetPolicy
Auto Trait Implementations§
impl Freeze for ReviewTargetPolicy
impl RefUnwindSafe for ReviewTargetPolicy
impl Send for ReviewTargetPolicy
impl Sync for ReviewTargetPolicy
impl Unpin for ReviewTargetPolicy
impl UnsafeUnpin for ReviewTargetPolicy
impl UnwindSafe for ReviewTargetPolicy
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