pub fn subaccount_hide(&self, account_id: &str, sub_account_index: usize, visible: bool, snapshot_password: &str) {
        let mut account = self.account_get_by_id(&account_id, snapshot_password);
        let sub_account = &mut account.get_sub_account(sub_account_index);
        sub_account.set_display(visible);
        self.account_update(&mut account, snapshot_password);
    }
/// Switches the visibility of a subaccount
///
/// The subaccount won't be erased.
///
/// `account_id` id of the account, is required to identify the stored account.
///
/// `sub_account_index` subaccount number, required in order to identify which subaccount
///
/// `visible` if the subaccount should be visible or not
///
/// `snapshot_password` password required to decrypt/encrypt the snapshot file
/// # Example
/// ```no_run
/// use stronghold::Stronghold;
/// let stronghold = Stronghold::new("savings.snapshot");
/// let account_id = "7c1a5ce9cc8f57f8739634aefbafda9eba6a02f82e3a4ab825ed296274e3aca1";
/// let sub_account_index = 1;
/// let visible = false;
/// let snapshot_password = "duajwYh442875";
/// stronghold.subaccount_hide(&account_id, sub_account_index, visible, &snapshot_password);
/// ```
Switches the visibility of a subaccount
The subaccount won't be erased.

`account_id` id of the account, is required to identify the stored account.

`sub_account_index` subaccount number, required in order to identify which subaccount

`visible` if the subaccount should be visible or not

`snapshot_password` password required to decrypt/encrypt the snapshot file
Switches the visibility of a subaccount The subaccount won ' t be erased . ` account_id ` id of the account is required to identify the stored account . ` sub_account_index ` subaccount number required in order to identify which subaccount ` visible ` if the subaccount should be visible or not ` snapshot_password ` password required to decrypt / encrypt the snapshot file
pub fn subaccount_hide(&self, account_id: &str, sub_account_index: usize, visible: bool, snapshot_password: &str) {
        let mut account = self.account_get_by_id(&account_id, snapshot_password);
        let sub_account = &mut account.get_sub_account(sub_account_index);
        sub_account.set_display(visible);
        self.account_update(&mut account, snapshot_password);
    }
pub fn subaccount_hide ( & self , account_id : & str , sub_account_index : usize , visible : bool , snapshot_password : & str ) { let mut account = self . account_get_by_id ( & account_id , snapshot_password ) ; let sub_account = & mut account . get_sub_account ( sub_account_index ) ; sub_account . set_display ( visible ) ; self . account_update ( & mut account , snapshot_password ) ; }
Switches the visibility of a subaccount
The subaccount won't be erased.
Switches the visibility of a subaccount The subaccount won ' t be erased .
&self
account_id
&str
sub_account_index
usize
visible
bool
snapshot_password
&str
example
None