Skip to main content

CreateAccountErrorKind

Enum CreateAccountErrorKind 

Source
#[non_exhaustive]
pub enum CreateAccountErrorKind {
Show 26 variants LinkedEventFailed = 1, LinkedEventChainOpen = 2, TimestampMustBeZero = 3, ReservedField = 4, ReservedFlag = 5, IdMustNotBeZero = 6, IdMustNotBeIntMax = 7, FlagsAreMutuallyExclusive = 8, DebitsPendingMustBeZero = 9, DebitsPostedMustBeZero = 10, CreditsPendingMustBeZero = 11, CreditsPostedMustBeZero = 12, LedgerMustNotBeZero = 13, CodeMustNotBeZero = 14, ExistsWithDifferentFlags = 15, ExistsWithDifferentUserData128 = 16, ExistsWithDifferentUserData64 = 17, ExistsWithDifferentUserData32 = 18, ExistsWithDifferentLedger = 19, ExistsWithDifferentCode = 20, Exists = 21, ImportedEventExpected = 22, ImportedEventNotExpected = 23, ImportedEventTimestampOutOfRange = 24, ImportedEventTimestampMustNotAdvance = 25, ImportedEventTimestampMustNotRegress = 26,
}

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.
§

LinkedEventFailed = 1

§

LinkedEventChainOpen = 2

§

TimestampMustBeZero = 3

§

ReservedField = 4

§

ReservedFlag = 5

§

IdMustNotBeZero = 6

§

IdMustNotBeIntMax = 7

§

FlagsAreMutuallyExclusive = 8

§

DebitsPendingMustBeZero = 9

§

DebitsPostedMustBeZero = 10

§

CreditsPendingMustBeZero = 11

§

CreditsPostedMustBeZero = 12

§

LedgerMustNotBeZero = 13

§

CodeMustNotBeZero = 14

§

ExistsWithDifferentFlags = 15

§

ExistsWithDifferentUserData128 = 16

§

ExistsWithDifferentUserData64 = 17

§

ExistsWithDifferentUserData32 = 18

§

ExistsWithDifferentLedger = 19

§

ExistsWithDifferentCode = 20

§

Exists = 21

§

ImportedEventExpected = 22

§

ImportedEventNotExpected = 23

§

ImportedEventTimestampOutOfRange = 24

§

ImportedEventTimestampMustNotAdvance = 25

§

ImportedEventTimestampMustNotRegress = 26

Implementations§

Source§

impl CreateAccountErrorKind

Source

pub fn from_snake_case_str(s: &str) -> Option<CreateAccountErrorKind>

Try parsing CreateAccountErrorKind from a string slice

§Stability

Might return Some instead of None after a minor version bump

Source

pub fn into_snake_case_str(self) -> &'static str

Returns a static string slice according to CreateAccountErrorKind variant’s name but in snake_case

Trait Implementations§

Source§

impl Clone for CreateAccountErrorKind

Source§

fn clone(&self) -> CreateAccountErrorKind

Returns a duplicate 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 CreateAccountErrorKind

Source§

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

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

impl From<CreateAccountErrorKind> for CreateAccountError

Source§

impl Copy for CreateAccountErrorKind

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<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, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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<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, 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.