pub struct OwnershipRule {
pub pattern: String,
pub owners: Vec<String>,
pub line: u32,
}Expand description
One CODEOWNERS rule, retained in file order because the last matching rule wins.
Fields§
§pattern: StringCODEOWNERS pattern after supported escaping is decoded.
owners: Vec<String>Valid explicit owners in declaration order.
line: u32One-based declaration line.
Trait Implementations§
Source§impl Clone for OwnershipRule
impl Clone for OwnershipRule
Source§fn clone(&self) -> OwnershipRule
fn clone(&self) -> OwnershipRule
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 OwnershipRule
impl Debug for OwnershipRule
Source§impl<'de> Deserialize<'de> for OwnershipRule
impl<'de> Deserialize<'de> for OwnershipRule
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
impl Eq for OwnershipRule
Source§impl PartialEq for OwnershipRule
impl PartialEq for OwnershipRule
Source§impl Serialize for OwnershipRule
impl Serialize for OwnershipRule
impl StructuralPartialEq for OwnershipRule
Auto Trait Implementations§
impl Freeze for OwnershipRule
impl RefUnwindSafe for OwnershipRule
impl Send for OwnershipRule
impl Sync for OwnershipRule
impl Unpin for OwnershipRule
impl UnsafeUnpin for OwnershipRule
impl UnwindSafe for OwnershipRule
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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.