pub struct RestoreFootprintOperation { /* private fields */ }Expand description
Represents an operation to restore the Soroban footprint.
Soroban transactions include a footprint describing which ledger entries they read and/or write. Some ledger entries used by smart contracts may have a TTL (time to live) in the eviction queue. This operation restores any evicted entries referenced in the transaction’s footprint back into the ledger.
The XDR struct RestoreFootprintOp currently contains only an ExtensionPoint
which is always the V0 (empty) variant for now.
Implementations§
Source§impl RestoreFootprintOperation
impl RestoreFootprintOperation
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 mutable reference to the operation source account.
Sourcepub fn to_xdr_operation_body(&self) -> Result<OperationBody>
pub fn to_xdr_operation_body(&self) -> Result<OperationBody>
Returns the XDR operation body.
Sourcepub fn from_xdr_operation_body(
source_account: Option<MuxedAccount>,
_x: &RestoreFootprintOp,
) -> Result<RestoreFootprintOperation>
pub fn from_xdr_operation_body( source_account: Option<MuxedAccount>, _x: &RestoreFootprintOp, ) -> Result<RestoreFootprintOperation>
Creates from the XDR operation body.
Trait Implementations§
Source§impl Clone for RestoreFootprintOperation
impl Clone for RestoreFootprintOperation
Source§fn clone(&self) -> RestoreFootprintOperation
fn clone(&self) -> RestoreFootprintOperation
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 RestoreFootprintOperation
impl Debug for RestoreFootprintOperation
impl Eq for RestoreFootprintOperation
impl StructuralPartialEq for RestoreFootprintOperation
Auto Trait Implementations§
impl Freeze for RestoreFootprintOperation
impl RefUnwindSafe for RestoreFootprintOperation
impl Send for RestoreFootprintOperation
impl Sync for RestoreFootprintOperation
impl Unpin for RestoreFootprintOperation
impl UnwindSafe for RestoreFootprintOperation
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