[−][src]Enum stellar_base::transaction_result::TransactionResult
Result of a transaction.
Variants
FeeBumpSuccess(TransactionResultFeeBumpSuccess)
FeeBumpFailed(TransactionResultFeeBumpFailed)
Success(TransactionResultSuccess)
Failed(TransactionResultFailed)
TooEarly(TransactionResultTooEarly)
TooLate(TransactionResultTooLate)
MissingOperation(TransactionResultMissingOperation)
BadSequence(TransactionResultBadSequence)
BadAuth(TransactionResultBadAuth)
InsufficientBalance(TransactionResultInsufficientBalance)
NoAccount(TransactionResultNoAccount)
InsufficientFee(TransactionResultInsufficientFee)
BadAuthExtra(TransactionResultBadAuthExtra)
InternalError(TransactionResultInternalError)
NotSupported(TransactionResultNotSupported)
BadSponsorship(TransactionResultBadSponsorship)
Implementations
impl TransactionResult
[src]
pub fn as_fee_bump_success(&self) -> Option<&TransactionResultFeeBumpSuccess>
[src]
If the result is a FeeBumpSuccess, returns its value. Returns None otherwise
pub fn is_fee_bump_success(&self) -> bool
[src]
Returns true if the transaction result is a FeeBumpSuccess.
pub fn as_fee_bump_failed(&self) -> Option<&TransactionResultFeeBumpFailed>
[src]
If the result is a FeeBumpFailed, returns its value. Returns None otherwise
pub fn is_fee_bump_failed(&self) -> bool
[src]
Returns true if the transaction result is a FeeBumpFailed.
pub fn as_success(&self) -> Option<&TransactionResultSuccess>
[src]
If the result is a Success, returns its value. Returns None otherwise
pub fn is_success(&self) -> bool
[src]
Returns true if the transaction result is a Success.
pub fn as_failed(&self) -> Option<&TransactionResultFailed>
[src]
If the result is a Failed, returns its value. Returns None otherwise
pub fn is_failed(&self) -> bool
[src]
Returns true if the transaction result is a Failed.
pub fn as_too_early(&self) -> Option<&TransactionResultTooEarly>
[src]
If the result is a TooEarly, returns its value. Returns None otherwise
pub fn is_too_early(&self) -> bool
[src]
Returns true if the transaction result is a TooEarly.
pub fn as_too_late(&self) -> Option<&TransactionResultTooLate>
[src]
If the result is a TooLate, returns its value. Returns None otherwise
pub fn is_too_late(&self) -> bool
[src]
Returns true if the transaction result is a TooLate.
pub fn as_missing_operation(&self) -> Option<&TransactionResultMissingOperation>
[src]
If the result is a MissingOperation, returns its value. Returns None otherwise
pub fn is_missing_operation(&self) -> bool
[src]
Returns true if the transaction result is a MissingOperation.
pub fn as_bad_sequence(&self) -> Option<&TransactionResultBadSequence>
[src]
If the result is a BadSequence, returns its value. Returns None otherwise
pub fn is_bad_sequence(&self) -> bool
[src]
Returns true if the transaction result is a BadSequence.
pub fn as_bad_auth(&self) -> Option<&TransactionResultBadAuth>
[src]
If the result is a BadAuth, returns its value. Returns None otherwise
pub fn is_bad_auth(&self) -> bool
[src]
Returns true if the transaction result is a BadAuth.
pub fn as_insufficient_balance(
&self
) -> Option<&TransactionResultInsufficientBalance>
[src]
&self
) -> Option<&TransactionResultInsufficientBalance>
If the result is a InsufficientBalance, returns its value. Returns None otherwise
pub fn is_insufficient_balance(&self) -> bool
[src]
Returns true if the transaction result is a InsufficientBalance.
pub fn as_no_account(&self) -> Option<&TransactionResultNoAccount>
[src]
If the result is a NoAccount, returns its value. Returns None otherwise
pub fn is_no_account(&self) -> bool
[src]
Returns true if the transaction result is a NoAccount.
pub fn as_insufficient_fee(&self) -> Option<&TransactionResultInsufficientFee>
[src]
If the result is a InsufficientFee, returns its value. Returns None otherwise
pub fn is_insufficient_fee(&self) -> bool
[src]
Returns true if the transaction result is a InsufficientFee.
pub fn as_bad_auth_extra(&self) -> Option<&TransactionResultBadAuthExtra>
[src]
If the result is a BadAuthExtra, returns its value. Returns None otherwise
pub fn is_bad_auth_extra(&self) -> bool
[src]
Returns true if the transaction result is a BadAuthExtra.
pub fn as_internal_error(&self) -> Option<&TransactionResultInternalError>
[src]
If the result is a InternalError, returns its value. Returns None otherwise
pub fn is_internal_error(&self) -> bool
[src]
Returns true if the transaction result is a InternalError.
pub fn as_not_supported(&self) -> Option<&TransactionResultNotSupported>
[src]
If the result is a NotSupported, returns its value. Returns None otherwise
pub fn is_not_supported(&self) -> bool
[src]
Returns true if the transaction result is a NotSupported.
pub fn as_bad_sponsorship(&self) -> Option<&TransactionResultBadSponsorship>
[src]
If the result is a BadSponsorship, returns its value. Returns None otherwise
pub fn is_bad_sponsorship(&self) -> bool
[src]
Returns true if the transaction result is a BadSponsorship.
pub fn from_xdr(x: &TransactionResult) -> Result<TransactionResult>
[src]
Creates TransactionResult
from xdr object.
Trait Implementations
impl Clone for TransactionResult
[src]
pub fn clone(&self) -> TransactionResult
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for TransactionResult
[src]
impl Eq for TransactionResult
[src]
impl PartialEq<TransactionResult> for TransactionResult
[src]
pub fn eq(&self, other: &TransactionResult) -> bool
[src]
pub fn ne(&self, other: &TransactionResult) -> bool
[src]
impl StructuralEq for TransactionResult
[src]
impl StructuralPartialEq for TransactionResult
[src]
impl XDRDeserialize for TransactionResult
[src]
Auto Trait Implementations
impl RefUnwindSafe for TransactionResult
[src]
impl Send for TransactionResult
[src]
impl Sync for TransactionResult
[src]
impl Unpin for TransactionResult
[src]
impl UnwindSafe for TransactionResult
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,