pub struct ExtendFootprintTtlOperation { /* private fields */ }Expand description
Represents an operation to extend the footprint TTL for Soroban (smart contract) related ledger entries.
Soroban introduces temporary ledger entries with a TTL (time to live) that can be extended.
This operation sets the TTL of all entries in the transaction’s footprint to at least
extend_to (a ledger sequence number). If an entry already exceeds this value, it is
unaffected.
NOTE: The ext field in ExtendFootprintTtlOp is currently always the empty
ExtensionPoint::V0.
Implementations§
Source§impl ExtendFootprintTtlOperation
impl ExtendFootprintTtlOperation
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 extend_to_mut(&mut self) -> &mut u32
pub fn extend_to_mut(&mut self) -> &mut u32
Retrieves a mutable reference to the target ledger sequence number.
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: &ExtendFootprintTtlOp,
) -> Result<ExtendFootprintTtlOperation>
pub fn from_xdr_operation_body( source_account: Option<MuxedAccount>, x: &ExtendFootprintTtlOp, ) -> Result<ExtendFootprintTtlOperation>
Creates from the XDR operation body.
Trait Implementations§
Source§impl Clone for ExtendFootprintTtlOperation
impl Clone for ExtendFootprintTtlOperation
Source§fn clone(&self) -> ExtendFootprintTtlOperation
fn clone(&self) -> ExtendFootprintTtlOperation
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 ExtendFootprintTtlOperation
impl Debug for ExtendFootprintTtlOperation
impl Eq for ExtendFootprintTtlOperation
impl StructuralPartialEq for ExtendFootprintTtlOperation
Auto Trait Implementations§
impl Freeze for ExtendFootprintTtlOperation
impl RefUnwindSafe for ExtendFootprintTtlOperation
impl Send for ExtendFootprintTtlOperation
impl Sync for ExtendFootprintTtlOperation
impl Unpin for ExtendFootprintTtlOperation
impl UnwindSafe for ExtendFootprintTtlOperation
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