pub struct ExtendPlan {
pub contract_id: String,
pub keys: Vec<String>,
pub suggested_ledgers: u32,
pub suggested_ledgers_reason: String,
}Expand description
A non-mutating remediation plan derived from a SnapshotDiff.
The plan identifies which ledger keys need TTL extension and suggests a
--ledgers value the operator can pass directly to sdkt storage extend.
Nothing is signed or submitted.
Fields§
§contract_id: StringContract whose storage needs remediation.
keys: Vec<String>Ledger keys (base64 XDR) that should be included in the extend footprint. Empty when there is nothing to remediate.
suggested_ledgers: u32Suggested value for --ledgers (relative TTL extension).
When there are actionable entries the suggestion is
max(DEFAULT_SUGGESTED_LEDGERS, min_remaining_ttl + DEFAULT_SUGGESTED_LEDGERS)
rounded to DEFAULT_SUGGESTED_LEDGERS when there are no remaining TTL
signals (e.g. all entries are Removed).
suggested_ledgers_reason: StringHuman-readable reason explaining how suggested_ledgers was chosen.
Trait Implementations§
Source§impl Clone for ExtendPlan
impl Clone for ExtendPlan
Source§impl Debug for ExtendPlan
impl Debug for ExtendPlan
Source§impl<'de> Deserialize<'de> for ExtendPlan
impl<'de> Deserialize<'de> for ExtendPlan
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ExtendPlan
impl PartialEq for ExtendPlan
Source§impl Serialize for ExtendPlan
impl Serialize for ExtendPlan
impl StructuralPartialEq for ExtendPlan
Auto Trait Implementations§
impl Freeze for ExtendPlan
impl RefUnwindSafe for ExtendPlan
impl Send for ExtendPlan
impl Sync for ExtendPlan
impl Unpin for ExtendPlan
impl UnsafeUnpin for ExtendPlan
impl UnwindSafe for ExtendPlan
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