[][src]Struct sudoku_backend::ops::errors::LoginError

pub struct LoginError {}

Security ⇒ no data.

Refer to doc/user.md for more details.

Examples

#[get("/login")]
fn login() -> Result<String, Json<LoginError>> {
    // Specificities of the log-in process are outside the scope of the document
    do_log_in().ok_or(Json(LoginError {}))
}

fn main() {
    rocket::ignite()
        .mount("/", routes![login])
        .launch();
}

Trait Implementations

impl PartialEq<LoginError> for LoginError
[src]

This method tests for !=.

impl Clone for LoginError
[src]

Performs copy-assignment from source. Read more

impl Copy for LoginError
[src]

impl From<()> for LoginError
[src]

impl Ord for LoginError
[src]

Compares and returns the maximum of two values. Read more

Compares and returns the minimum of two values. Read more

impl Eq for LoginError
[src]

impl PartialOrd<LoginError> for LoginError
[src]

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Debug for LoginError
[src]

impl Hash for LoginError
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl Serialize for LoginError
[src]

impl<'de> Deserialize<'de> for LoginError
[src]

Auto Trait Implementations

impl Send for LoginError

impl Sync for LoginError

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<T> Typeable for T where
    T: Any
[src]

Get the TypeId of this object.

impl<T> IntoSql for T
[src]

Convert self to an expression for Diesel's query builder. Read more

Convert &self to an expression for Diesel's query builder. Read more