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

Owner in the form @username

Owner in the form @org/Team

Owner in the form user@domain.com

Trait Implementations

impl Debug for Owner
[src]

Formats the value using the given formatter.

impl PartialEq for Owner
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Display for Owner
[src]

Formats the value using the given formatter. Read more

impl FromStr for Owner
[src]

The associated error which can be returned from parsing.

Parses a string s to return a value of this type. Read more