Skip to main content

CreateTransferErrorKind

Enum CreateTransferErrorKind 

Source
#[non_exhaustive]
pub enum CreateTransferErrorKind {
Show 67 variants LinkedEventFailed = 1, LinkedEventChainOpen = 2, TimestampMustBeZero = 3, ReservedFlag = 4, IdMustNotBeZero = 5, IdMustNotBeIntMax = 6, FlagsAreMutuallyExclusive = 7, DebitAccountIdMustNotBeZero = 8, DebitAccountIdMustNotBeIntMax = 9, CreditAccountIdMustNotBeZero = 10, CreditAccountIdMustNotBeIntMax = 11, AccountsMustBeDifferent = 12, PendingIdMustBeZero = 13, PendingIdMustNotBeZero = 14, PendingIdMustNotBeIntMax = 15, PendingIdMustBeDifferent = 16, TimeoutReservedForPendingTransfer = 17, LedgerMustNotBeZero = 19, CodeMustNotBeZero = 20, DebitAccountNotFound = 21, CreditAccountNotFound = 22, AccountsMustHaveTheSameLedger = 23, TransferMustHaveTheSameLedgerAsAccounts = 24, PendingTransferNotFound = 25, PendingTransferNotPending = 26, PendingTransferHasDifferentDebitAccountId = 27, PendingTransferHasDifferentCreditAccountId = 28, PendingTransferHasDifferentLedger = 29, PendingTransferHasDifferentCode = 30, ExceedsPendingTransferAmount = 31, PendingTransferHasDifferentAmount = 32, PendingTransferAlreadyPosted = 33, PendingTransferAlreadyVoided = 34, PendingTransferExpired = 35, ExistsWithDifferentFlags = 36, ExistsWithDifferentDebitAccountId = 37, ExistsWithDifferentCreditAccountId = 38, ExistsWithDifferentAmount = 39, ExistsWithDifferentPendingId = 40, ExistsWithDifferentUserData128 = 41, ExistsWithDifferentUserData64 = 42, ExistsWithDifferentUserData32 = 43, ExistsWithDifferentTimeout = 44, ExistsWithDifferentCode = 45, Exists = 46, OverflowsDebitsPending = 47, OverflowsCreditsPending = 48, OverflowsDebitsPosted = 49, OverflowsCreditsPosted = 50, OverflowsDebits = 51, OverflowsCredits = 52, OverflowsTimeout = 53, ExceedsCredits = 54, ExceedsDebits = 55, ImportedEventExpected = 56, ImportedEventNotExpected = 57, ImportedEventTimestampOutOfRange = 58, ImportedEventTimestampMustNotAdvance = 59, ImportedEventTimestampMustNotRegress = 60, ImportedEventTimestampMustPostdateDebitAccount = 61, ImportedEventTimestampMustPostdateCreditAccount = 62, ImportedEventTimeoutMustBeZero = 63, ClosingTransferMustBePending = 64, DebitAccountAlreadyClosed = 65, CreditAccountAlreadyClosed = 66, ExistsWithDifferentLedger = 67, IdAlreadyFailed = 68,
}

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

§

ReservedFlag = 4

§

IdMustNotBeZero = 5

§

IdMustNotBeIntMax = 6

§

FlagsAreMutuallyExclusive = 7

§

DebitAccountIdMustNotBeZero = 8

§

DebitAccountIdMustNotBeIntMax = 9

§

CreditAccountIdMustNotBeZero = 10

§

CreditAccountIdMustNotBeIntMax = 11

§

AccountsMustBeDifferent = 12

§

PendingIdMustBeZero = 13

§

PendingIdMustNotBeZero = 14

§

PendingIdMustNotBeIntMax = 15

§

PendingIdMustBeDifferent = 16

§

TimeoutReservedForPendingTransfer = 17

§

LedgerMustNotBeZero = 19

§

CodeMustNotBeZero = 20

§

DebitAccountNotFound = 21

§

CreditAccountNotFound = 22

§

AccountsMustHaveTheSameLedger = 23

§

TransferMustHaveTheSameLedgerAsAccounts = 24

§

PendingTransferNotFound = 25

§

PendingTransferNotPending = 26

§

PendingTransferHasDifferentDebitAccountId = 27

§

PendingTransferHasDifferentCreditAccountId = 28

§

PendingTransferHasDifferentLedger = 29

§

PendingTransferHasDifferentCode = 30

§

ExceedsPendingTransferAmount = 31

§

PendingTransferHasDifferentAmount = 32

§

PendingTransferAlreadyPosted = 33

§

PendingTransferAlreadyVoided = 34

§

PendingTransferExpired = 35

§

ExistsWithDifferentFlags = 36

§

ExistsWithDifferentDebitAccountId = 37

§

ExistsWithDifferentCreditAccountId = 38

§

ExistsWithDifferentAmount = 39

§

ExistsWithDifferentPendingId = 40

§

ExistsWithDifferentUserData128 = 41

§

ExistsWithDifferentUserData64 = 42

§

ExistsWithDifferentUserData32 = 43

§

ExistsWithDifferentTimeout = 44

§

ExistsWithDifferentCode = 45

§

Exists = 46

§

OverflowsDebitsPending = 47

§

OverflowsCreditsPending = 48

§

OverflowsDebitsPosted = 49

§

OverflowsCreditsPosted = 50

§

OverflowsDebits = 51

§

OverflowsCredits = 52

§

OverflowsTimeout = 53

§

ExceedsCredits = 54

§

ExceedsDebits = 55

§

ImportedEventExpected = 56

§

ImportedEventNotExpected = 57

§

ImportedEventTimestampOutOfRange = 58

§

ImportedEventTimestampMustNotAdvance = 59

§

ImportedEventTimestampMustNotRegress = 60

§

ImportedEventTimestampMustPostdateDebitAccount = 61

§

ImportedEventTimestampMustPostdateCreditAccount = 62

§

ImportedEventTimeoutMustBeZero = 63

§

ClosingTransferMustBePending = 64

§

DebitAccountAlreadyClosed = 65

§

CreditAccountAlreadyClosed = 66

§

ExistsWithDifferentLedger = 67

§

IdAlreadyFailed = 68

Implementations§

Source§

impl CreateTransferErrorKind

Source

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

Try parsing CreateTransferErrorKind 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 CreateTransferErrorKind variant’s name but in snake_case

Trait Implementations§

Source§

impl Clone for CreateTransferErrorKind

Source§

fn clone(&self) -> CreateTransferErrorKind

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 CreateTransferErrorKind

Source§

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

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

impl From<CreateTransferErrorKind> for CreateTransferError

Source§

impl Copy for CreateTransferErrorKind

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.