1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
/// Removes the account and transfers all remaining XLM to the destination account.
#[derive(Debug, Clone)]
pub struct AccountMerge {
    account: String,
    into: String,
}

/// Removes the account and transfers all remaining XLM to the destination account.
impl AccountMerge {
    /// Creates a new AccountMerge
    pub fn new(account: String, into: String) -> AccountMerge {
        AccountMerge { account, into }
    }

    /// The account being deleted from the ledger
    pub fn account(&self) -> &str {
        &self.account
    }

    /// Account ID where funds of deleted account were transferred.
    pub fn into(&self) -> &str {
        &self.into
    }
}