#[non_exhaustive]pub enum CreateAccountResult {
Show 27 variants
Ok,
LinkedEventFailed,
LinkedEventChainOpen,
ImportedEventExpected,
ImportedEventNotExpected,
TimestampMustBeZero,
ImportedEventTimestampOutOfRange,
ImportedEventTimestampMustNotAdvance,
ReservedField,
ReservedFlag,
IdMustNotBeZero,
IdMustNotBeIntMax,
ExistsWithDifferentFlags,
ExistsWithDifferentUserData128,
ExistsWithDifferentUserData64,
ExistsWithDifferentUserData32,
ExistsWithDifferentLedger,
ExistsWithDifferentCode,
Exists,
FlagsAreMutuallyExclusive,
DebitsPendingMustBeZero,
DebitsPostedMustBeZero,
CreditsPendingMustBeZero,
CreditsPostedMustBeZero,
LedgerMustNotBeZero,
CodeMustNotBeZero,
ImportedEventTimestampMustNotRegress,
}Expand description
The result of a single create_accounts event.
For the meaning of individual enum variants see the linked protocol reference.
See also CreateAccountsResult (note the plural), the type directly
returned by create_accunts, and which contains an additional index for
relating results with input events.
§Protocol reference
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.
Ok
LinkedEventFailed
LinkedEventChainOpen
ImportedEventExpected
ImportedEventNotExpected
TimestampMustBeZero
ImportedEventTimestampOutOfRange
ImportedEventTimestampMustNotAdvance
ReservedField
ReservedFlag
IdMustNotBeZero
IdMustNotBeIntMax
ExistsWithDifferentFlags
ExistsWithDifferentUserData128
ExistsWithDifferentUserData64
ExistsWithDifferentUserData32
ExistsWithDifferentLedger
ExistsWithDifferentCode
Exists
FlagsAreMutuallyExclusive
DebitsPendingMustBeZero
DebitsPostedMustBeZero
CreditsPendingMustBeZero
CreditsPostedMustBeZero
LedgerMustNotBeZero
CodeMustNotBeZero
ImportedEventTimestampMustNotRegress
Trait Implementations§
Source§impl Clone for CreateAccountResult
impl Clone for CreateAccountResult
Source§fn clone(&self) -> CreateAccountResult
fn clone(&self) -> CreateAccountResult
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 CreateAccountResult
impl Debug for CreateAccountResult
Source§impl Display for CreateAccountResult
impl Display for CreateAccountResult
Source§impl From<CreateAccountResult> for u32
impl From<CreateAccountResult> for u32
Source§fn from(other: CreateAccountResult) -> u32
fn from(other: CreateAccountResult) -> u32
Converts to this type from the input type.
Source§impl From<u32> for CreateAccountResult
impl From<u32> for CreateAccountResult
Source§fn from(other: u32) -> CreateAccountResult
fn from(other: u32) -> CreateAccountResult
Converts to this type from the input type.
Source§impl Hash for CreateAccountResult
impl Hash for CreateAccountResult
Source§impl Ord for CreateAccountResult
impl Ord for CreateAccountResult
Source§fn cmp(&self, other: &CreateAccountResult) -> Ordering
fn cmp(&self, other: &CreateAccountResult) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CreateAccountResult
impl PartialEq for CreateAccountResult
Source§impl PartialOrd for CreateAccountResult
impl PartialOrd for CreateAccountResult
impl Copy for CreateAccountResult
impl Eq for CreateAccountResult
impl StructuralPartialEq for CreateAccountResult
Auto Trait Implementations§
impl Freeze for CreateAccountResult
impl RefUnwindSafe for CreateAccountResult
impl Send for CreateAccountResult
impl Sync for CreateAccountResult
impl Unpin for CreateAccountResult
impl UnwindSafe for CreateAccountResult
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