Enum cargo_registry::owner::Owner
[−]
[src]
pub enum Owner { User(User), Team(Team), }
Unifies the notion of a User or a Team.
Variants
User(User)
Team(Team)
Methods
impl Owner
[src]
fn find_by_login(conn: &PgConnection, name: &str) -> CargoResult<Owner>
[src]
Finds the owner by name, failing out if it doesn't exist. May be a user's GH login, or a full team name. This is case sensitive.