pub enum Owner {
Username(String),
Team(String),
Email(String),
}
Expand description
Various types of owners
Owners supports parsing from strings as well as displaying as strings
§Examples
let raw = "@org/team";
assert_eq!(
raw.parse::<codeowners::Owner>().unwrap().to_string(),
raw
);
Variants§
Username(String)
Owner in the form @username
Team(String)
Owner in the form @org/Team
Email(String)
Owner in the form user@domain.com
Trait Implementations§
impl StructuralPartialEq for Owner
Auto Trait Implementations§
impl Freeze for Owner
impl RefUnwindSafe for Owner
impl Send for Owner
impl Sync for Owner
impl Unpin for Owner
impl UnwindSafe for Owner
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