Module cargo_registry::owner
[−]
[src]
Reexports
use diesel::prelude::*; |
use app::App; |
use http; |
use schema::*; |
use util::CargoResult; |
use util::human; |
use User; |
use Crate; |
Structs
CrateOwner | |
EncodableOwner | |
EncodableTeam | |
NewTeam | |
Team |
For now, just a Github Team. Can be upgraded to other teams later if desirable. |
Enums
Owner |
Unifies the notion of a User or a Team. |
OwnerKind | |
Rights |
Access rights to the crate (publishing and ownership management) NOTE: The order of these variants matters! |
Constants
_IMPL_DESERIALIZE_FOR_EncodableOwner | |
_IMPL_DESERIALIZE_FOR_Team | |
_IMPL_QUERYABLE_FOR_TEAM | |
_IMPL_SERIALIZE_FOR_EncodableOwner | |
_IMPL_SERIALIZE_FOR_EncodableTeam | |
_IMPL_SERIALIZE_FOR_Team |
Functions
rights |
Given this set of owners, determines the strongest rights the given user has. |
team_with_gh_id_contains_user |