Enum codeowners::Owner
[−]
[src]
pub enum Owner { Username(String), Team(String), Email(String), }
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 Debug for Owner
[src]
impl PartialEq for Owner
[src]
fn eq(&self, __arg_0: &Owner) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Owner) -> bool
This method tests for !=
.