#[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
impl CreateTransferErrorKind
Sourcepub fn from_snake_case_str(s: &str) -> Option<CreateTransferErrorKind>
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
Sourcepub fn into_snake_case_str(self) -> &'static str
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
impl Clone for CreateTransferErrorKind
Source§fn clone(&self) -> CreateTransferErrorKind
fn clone(&self) -> CreateTransferErrorKind
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for CreateTransferErrorKind
impl Debug for CreateTransferErrorKind
Source§impl From<CreateTransferErrorKind> for CreateTransferError
impl From<CreateTransferErrorKind> for CreateTransferError
Source§fn from(value: CreateTransferErrorKind) -> CreateTransferError
fn from(value: CreateTransferErrorKind) -> CreateTransferError
Constructs a CreateTransferError out of the provided CreateTransferErrorKind.
§Panics
Panics on the hidden CreateTransferErrorKind::UnstableUncategorized variant.
impl Copy for CreateTransferErrorKind
Auto Trait Implementations§
impl Freeze for CreateTransferErrorKind
impl RefUnwindSafe for CreateTransferErrorKind
impl Send for CreateTransferErrorKind
impl Sync for CreateTransferErrorKind
impl Unpin for CreateTransferErrorKind
impl UnsafeUnpin for CreateTransferErrorKind
impl UnwindSafe for CreateTransferErrorKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more