api_response::error_code

Enum ModSegment

Source
#[non_exhaustive]
#[repr(u8)]
pub enum ModSegment {
Show 100 variants M00 = 0, M01 = 1, M02 = 2, M03 = 3, M04 = 4, M05 = 5, M06 = 6, M07 = 7, M08 = 8, M09 = 9, M10 = 10, M11 = 11, M12 = 12, M13 = 13, M14 = 14, M15 = 15, M16 = 16, M17 = 17, M18 = 18, M19 = 19, M20 = 20, M21 = 21, M22 = 22, M23 = 23, M24 = 24, M25 = 25, M26 = 26, M27 = 27, M28 = 28, M29 = 29, M30 = 30, M31 = 31, M32 = 32, M33 = 33, M34 = 34, M35 = 35, M36 = 36, M37 = 37, M38 = 38, M39 = 39, M40 = 40, M41 = 41, M42 = 42, M43 = 43, M44 = 44, M45 = 45, M46 = 46, M47 = 47, M48 = 48, M49 = 49, M50 = 50, M51 = 51, M52 = 52, M53 = 53, M54 = 54, M55 = 55, M56 = 56, M57 = 57, M58 = 58, M59 = 59, M60 = 60, M61 = 61, M62 = 62, M63 = 63, M64 = 64, M65 = 65, M66 = 66, M67 = 67, M68 = 68, M69 = 69, M70 = 70, M71 = 71, M72 = 72, M73 = 73, M74 = 74, M75 = 75, M76 = 76, M77 = 77, M78 = 78, M79 = 79, M80 = 80, M81 = 81, M82 = 82, M83 = 83, M84 = 84, M85 = 85, M86 = 86, M87 = 87, M88 = 88, M89 = 89, M90 = 90, M91 = 91, M92 = 92, M93 = 93, M94 = 94, M95 = 95, M96 = 96, M97 = 97, M98 = 98, M99 = 99,
}

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

M00 = 0

§

M01 = 1

§

M02 = 2

§

M03 = 3

§

M04 = 4

§

M05 = 5

§

M06 = 6

§

M07 = 7

§

M08 = 8

§

M09 = 9

§

M10 = 10

§

M11 = 11

§

M12 = 12

§

M13 = 13

§

M14 = 14

§

M15 = 15

§

M16 = 16

§

M17 = 17

§

M18 = 18

§

M19 = 19

§

M20 = 20

§

M21 = 21

§

M22 = 22

§

M23 = 23

§

M24 = 24

§

M25 = 25

§

M26 = 26

§

M27 = 27

§

M28 = 28

§

M29 = 29

§

M30 = 30

§

M31 = 31

§

M32 = 32

§

M33 = 33

§

M34 = 34

§

M35 = 35

§

M36 = 36

§

M37 = 37

§

M38 = 38

§

M39 = 39

§

M40 = 40

§

M41 = 41

§

M42 = 42

§

M43 = 43

§

M44 = 44

§

M45 = 45

§

M46 = 46

§

M47 = 47

§

M48 = 48

§

M49 = 49

§

M50 = 50

§

M51 = 51

§

M52 = 52

§

M53 = 53

§

M54 = 54

§

M55 = 55

§

M56 = 56

§

M57 = 57

§

M58 = 58

§

M59 = 59

§

M60 = 60

§

M61 = 61

§

M62 = 62

§

M63 = 63

§

M64 = 64

§

M65 = 65

§

M66 = 66

§

M67 = 67

§

M68 = 68

§

M69 = 69

§

M70 = 70

§

M71 = 71

§

M72 = 72

§

M73 = 73

§

M74 = 74

§

M75 = 75

§

M76 = 76

§

M77 = 77

§

M78 = 78

§

M79 = 79

§

M80 = 80

§

M81 = 81

§

M82 = 82

§

M83 = 83

§

M84 = 84

§

M85 = 85

§

M86 = 86

§

M87 = 87

§

M88 = 88

§

M89 = 89

§

M90 = 90

§

M91 = 91

§

M92 = 92

§

M93 = 93

§

M94 = 94

§

M95 = 95

§

M96 = 96

§

M97 = 97

§

M98 = 98

§

M99 = 99

Implementations§

Source§

impl ModSegment

Source

pub const fn new_mod_section(self, name: &'static str) -> ModSection

Trait Implementations§

Source§

impl BitOr<ModSegment> for ErrSegment

Append two digits at the end in the form of a decimal literal.

Source§

type Output = i32

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: ModSegment) -> Self::Output

Performs the | operation. Read more
Source§

impl BitOr<ModSegment> for i32

Append two digits at the end in the form of a decimal literal.

Source§

type Output = i32

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: ModSegment) -> Self::Output

Performs the | operation. Read more
Source§

impl BitOr for ModSegment

Append two digits at the end in the form of a decimal literal.

Source§

type Output = i32

The resulting type after applying the | operator.
Source§

fn bitor(self, rhs: ModSegment) -> Self::Output

Performs the | operation. Read more
Source§

impl Clone for ModSegment

Source§

fn clone(&self) -> ModSegment

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ModSegment

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for ModSegment

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Display for ModSegment

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl From<ModSegment> for i32

Source§

fn from(value: ModSegment) -> Self

Converts to this type from the input type.
Source§

impl From<ModSegment> for u8

Source§

fn from(enum_value: ModSegment) -> Self

Converts to this type from the input type.
Source§

impl Hash for ModSegment

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for ModSegment

Source§

fn eq(&self, other: &ModSegment) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl TryFrom<u8> for ModSegment

Source§

type Error = TryFromPrimitiveError<ModSegment>

The type returned in the event of a conversion error.
Source§

fn try_from(number: u8) -> Result<Self, TryFromPrimitiveError<Self>>

Performs the conversion.
Source§

impl TryFromPrimitive for ModSegment

Source§

impl Copy for ModSegment

Source§

impl Eq for ModSegment

Source§

impl StructuralPartialEq for ModSegment

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<Data> ApiSuccessResponse for Data

Source§

fn api_response<Meta>(self, meta: Option<Meta>) -> ApiResponse<Self, Meta>

Source§

fn api_response_without_meta<Meta>(self) -> ApiResponse<Self, Meta>

Source§

fn api_response_with_meta<Meta>(self, meta: Meta) -> ApiResponse<Self, Meta>

Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dst: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<E> IntoError for E
where E: Debug + Display,

Source§

fn into_error(self) -> ErrWrapper<Self>

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.