[][src]Enum stellar_base::operations::RevokeSponsorshipOperation

pub enum RevokeSponsorshipOperation {
    LedgerEntry(RevokeSponsorshipLedgerEntry),
    Signer(RevokeSponsorshipSigner),
}

Variants

LedgerEntry(RevokeSponsorshipLedgerEntry)
Signer(RevokeSponsorshipSigner)

Implementations

impl RevokeSponsorshipOperation[src]

pub fn source_account(&self) -> &Option<MuxedAccount>[src]

Retrieves the operation source account.

pub fn source_account_mut(&mut self) -> &mut Option<MuxedAccount>[src]

Retrieves a reference to the operation source account.

pub fn as_ledger_entry(&self) -> Option<&RevokeSponsorshipLedgerEntry>[src]

If the operation is a LedgerEntry, returns its value. Returns None otherwise.

pub fn as_ledger_entry_mut(
    &mut self
) -> Option<&mut RevokeSponsorshipLedgerEntry>
[src]

If the operation is a LedgerEntry, returns its value. Returns None otherwise.

pub fn is_ledger_entry(&self) -> bool[src]

Returns true if the operation is a LedgerEntry.

pub fn as_signer(&self) -> Option<&RevokeSponsorshipSigner>[src]

If the operation is a Signer, returns its value. Returns None otherwise.

pub fn as_signer_mut(&mut self) -> Option<&mut RevokeSponsorshipSigner>[src]

If the operation is a Signer, returns its value. Returns None otherwise.

pub fn is_signer(&self) -> bool[src]

Returns true if the operation is a Signer.

pub fn to_xdr_operation_body(&self) -> Result<OperationBody>[src]

Returns tho xdr operation body.

pub fn from_xdr_operation_body(
    source_account: Option<MuxedAccount>,
    x: &RevokeSponsorshipOp
) -> Result<RevokeSponsorshipOperation>
[src]

Creates from the xdr operation body.

Trait Implementations

impl Clone for RevokeSponsorshipOperation[src]

impl Debug for RevokeSponsorshipOperation[src]

impl Eq for RevokeSponsorshipOperation[src]

impl PartialEq<RevokeSponsorshipOperation> for RevokeSponsorshipOperation[src]

impl StructuralEq for RevokeSponsorshipOperation[src]

impl StructuralPartialEq for RevokeSponsorshipOperation[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.