pub struct OwnershipResult {
pub line_number: u32,
pub pattern: String,
pub owners: Vec<String>,
}Expand description
The rule that owns a file: which line matched, with what pattern, and which owners were assigned.
Returned by check_file_ownership and check_file_ownership_parsed.
Fields§
§line_number: u320-indexed line number of the matching rule in the CODEOWNERS file.
pattern: StringThe pattern text, as written in CODEOWNERS.
owners: Vec<String>Owners assigned to the matching rule. May be empty if the rule declares a pattern without any owners (a legal way of “unassigning” ownership via later rules).
Trait Implementations§
Source§impl Clone for OwnershipResult
impl Clone for OwnershipResult
Auto Trait Implementations§
impl Freeze for OwnershipResult
impl RefUnwindSafe for OwnershipResult
impl Send for OwnershipResult
impl Sync for OwnershipResult
impl Unpin for OwnershipResult
impl UnsafeUnpin for OwnershipResult
impl UnwindSafe for OwnershipResult
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