Module cargo_registry::user [] [src]

Reexports

use conduit::Request;
use conduit::Response;
use conduit_cookie::RequestSession;
use conduit_router::RequestParams;
use diesel::prelude::*;
use rand::thread_rng;
use rand::Rng;
use std::borrow::Cow;
use serde_json;
use app::RequestApp;
use db::RequestTransaction;
use krate::Follow;
use pagination::Paginate;
use schema::*;
use util::RequestUtils;
use util::CargoResult;
use util::human;
use version::EncodableVersion;
use http;
use Version;
use owner::Owner;
use owner::OwnerKind;
use owner::CrateOwner;
use krate::Crate;
pub use self::middleware::Middleware;
pub use self::middleware::RequestUser;
pub use self::middleware::AuthenticationSource;

Modules

middleware

Structs

EncodablePrivateUser

The serialization format for the User model. Same as public user, except for addition of email field

EncodablePublicUser

The serialization format for the User model. Same as private user, except no email field

NewUser
User

The model representing a row in the users database table.

Constants

_IMPL_DESERIALIZE_FOR_EncodablePrivateUser
_IMPL_DESERIALIZE_FOR_EncodablePublicUser
_IMPL_QUERYABLE_FOR_USER
_IMPL_SERIALIZE_FOR_EncodablePrivateUser
_IMPL_SERIALIZE_FOR_EncodablePublicUser

Functions

github_access_token

Handles the GET /authorize route.

github_authorize

Handles the GET /authorize_url route.

logout

Handles the GET /logout route.

me

Handles the GET /me route.

show

Handles the GET /users/:user_id route.

show_team

Handles the GET /teams/:team_id route.

stats

Handles the GET /users/:user_id/stats route.

update_user

Handles the PUT /user/:user_id route.

updates

Handles the GET /me/updates route.