pub enum RevokeSponsorshipOperation {
LedgerEntry(RevokeSponsorshipLedgerEntry),
Signer(RevokeSponsorshipSigner),
}Variants§
Implementations§
Source§impl RevokeSponsorshipOperation
impl RevokeSponsorshipOperation
Sourcepub fn source_account(&self) -> &Option<MuxedAccount>
pub fn source_account(&self) -> &Option<MuxedAccount>
Retrieves the operation source account.
Sourcepub fn source_account_mut(&mut self) -> &mut Option<MuxedAccount>
pub fn source_account_mut(&mut self) -> &mut Option<MuxedAccount>
Retrieves a reference to the operation source account.
Sourcepub fn as_ledger_entry(&self) -> Option<&RevokeSponsorshipLedgerEntry>
pub fn as_ledger_entry(&self) -> Option<&RevokeSponsorshipLedgerEntry>
If the operation is a LedgerEntry, returns its value. Returns None otherwise.
Sourcepub fn as_ledger_entry_mut(
&mut self,
) -> Option<&mut RevokeSponsorshipLedgerEntry>
pub fn as_ledger_entry_mut( &mut self, ) -> Option<&mut RevokeSponsorshipLedgerEntry>
If the operation is a LedgerEntry, returns its value. Returns None otherwise.
Sourcepub fn is_ledger_entry(&self) -> bool
pub fn is_ledger_entry(&self) -> bool
Returns true if the operation is a LedgerEntry.
Sourcepub fn as_signer(&self) -> Option<&RevokeSponsorshipSigner>
pub fn as_signer(&self) -> Option<&RevokeSponsorshipSigner>
If the operation is a Signer, returns its value. Returns None otherwise.
Sourcepub fn as_signer_mut(&mut self) -> Option<&mut RevokeSponsorshipSigner>
pub fn as_signer_mut(&mut self) -> Option<&mut RevokeSponsorshipSigner>
If the operation is a Signer, returns its value. Returns None otherwise.
Sourcepub fn to_xdr_operation_body(&self) -> Result<OperationBody>
pub fn to_xdr_operation_body(&self) -> Result<OperationBody>
Returns tho xdr operation body.
Sourcepub fn from_xdr_operation_body(
source_account: Option<MuxedAccount>,
x: &RevokeSponsorshipOp,
) -> Result<RevokeSponsorshipOperation>
pub fn from_xdr_operation_body( source_account: Option<MuxedAccount>, x: &RevokeSponsorshipOp, ) -> Result<RevokeSponsorshipOperation>
Creates from the xdr operation body.
Trait Implementations§
Source§impl Clone for RevokeSponsorshipOperation
impl Clone for RevokeSponsorshipOperation
Source§fn clone(&self) -> RevokeSponsorshipOperation
fn clone(&self) -> RevokeSponsorshipOperation
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 RevokeSponsorshipOperation
impl Debug for RevokeSponsorshipOperation
impl Eq for RevokeSponsorshipOperation
impl StructuralPartialEq for RevokeSponsorshipOperation
Auto Trait Implementations§
impl Freeze for RevokeSponsorshipOperation
impl RefUnwindSafe for RevokeSponsorshipOperation
impl Send for RevokeSponsorshipOperation
impl Sync for RevokeSponsorshipOperation
impl Unpin for RevokeSponsorshipOperation
impl UnwindSafe for RevokeSponsorshipOperation
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