#[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
impl CreateAccountErrorKind
Sourcepub fn from_snake_case_str(s: &str) -> Option<CreateAccountErrorKind>
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
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 CreateAccountErrorKind variant’s name but in snake_case
Trait Implementations§
Source§impl Clone for CreateAccountErrorKind
impl Clone for CreateAccountErrorKind
Source§fn clone(&self) -> CreateAccountErrorKind
fn clone(&self) -> CreateAccountErrorKind
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 CreateAccountErrorKind
impl Debug for CreateAccountErrorKind
Source§impl From<CreateAccountErrorKind> for CreateAccountError
impl From<CreateAccountErrorKind> for CreateAccountError
Source§fn from(value: CreateAccountErrorKind) -> CreateAccountError
fn from(value: CreateAccountErrorKind) -> CreateAccountError
Constructs a CreateAccountError out of the provided CreateAccountErrorKind.
§Panics
Panics on the hidden CreateAccountErrorKind::UnstableUncategorized variant.
impl Copy for CreateAccountErrorKind
Auto Trait Implementations§
impl Freeze for CreateAccountErrorKind
impl RefUnwindSafe for CreateAccountErrorKind
impl Send for CreateAccountErrorKind
impl Sync for CreateAccountErrorKind
impl Unpin for CreateAccountErrorKind
impl UnsafeUnpin for CreateAccountErrorKind
impl UnwindSafe for CreateAccountErrorKind
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