Enum v_common_api::app::ResultCode[][src]

#[repr(u16)]pub enum ResultCode {
    Zero,
    Ok,
    Created,
    NoContent,
    BadRequest,
    Forbidden,
    NotFound,
    UnprocessableEntity,
    Locked,
    TooManyRequests,
    TooManyRequestsChangePassword,
    ChangePasswordForbidden,
    SecretExpired,
    EmptyPassword,
    NewPasswordIsEqualToOld,
    InvalidPassword,
    InvalidSecret,
    PasswordExpired,
    TicketNotFound,
    TicketExpired,
    NotAuthorized,
    AuthenticationFailed,
    NotReady,
    FailOpenTransaction,
    FailCommit,
    FailStore,
    InternalServerError,
    NotImplemented,
    ServiceUnavailable,
    InvalidIdentifier,
    DatabaseModifiedError,
    DiskFull,
    DuplicateKey,
    SizeTooLarge,
    ConnectError,
}

Variants

Zero

0

Ok

200

Created

201

NoContent

204

BadRequest

400

Forbidden

403

NotFound

404

UnprocessableEntity

422

Locked

423

TooManyRequests

429

TooManyRequestsChangePassword

430

ChangePasswordForbidden

463

SecretExpired

464

EmptyPassword

465

NewPasswordIsEqualToOld

466

InvalidPassword

467

InvalidSecret

468

PasswordExpired

469

TicketNotFound

470

TicketExpired

471

NotAuthorized

472

AuthenticationFailed

473

NotReady

474

FailOpenTransaction

475

FailCommit

476

FailStore

477

InternalServerError

500

NotImplemented

501

ServiceUnavailable

503

InvalidIdentifier
DatabaseModifiedError

999

DiskFull

1021

DuplicateKey

1022

SizeTooLarge

1118

ConnectError

4000

Implementations

impl ResultCode[src]

pub fn from_i64(value: i64) -> ResultCode[src]

Trait Implementations

impl Clone for ResultCode[src]

impl Copy for ResultCode[src]

impl Debug for ResultCode[src]

impl PartialEq<ResultCode> for ResultCode[src]

impl Serialize for ResultCode[src]

impl StructuralPartialEq for ResultCode[src]

Auto Trait Implementations

Blanket Implementations

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

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

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

impl<T> From<T> for T[src]

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

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

type Owned = T

The resulting type after obtaining ownership.

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

type Error = Infallible

The type returned in the event of a conversion error.

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

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.