pub fn subaccount_add(&self, label: &str, account_id: &str, snapshot_password: &str) -> storage::Id {
        // todo: remove return
        let mut account = self.account_get_by_id(&account_id, snapshot_password);
        let subaccount = SubAccount::new(String::from(label));
        account.add_sub_account(subaccount);
        self.account_update(&mut account, snapshot_password)
    }
/// Adds a subaccount to an account
///
/// Specify the stored account with its id (`account_id`) , `snapshot_password` is required to decrypt/encrypt the
/// snapshot file.
///
/// `label` the name that you want to call it, only for anecdotal purpose
///
/// `account_id` id of the account to which a subaccount will be added
///
/// `snapshot_password` password required for decrypt/encrypt snapshot file
///
/// # Example
/// ```no_run
/// use stronghold::Stronghold;
/// let stronghold = Stronghold::new("savings.snapshot");
/// stronghold.subaccount_add(
///     "savings",
///     "7c1a5ce9cc8f57f8739634aefbafda9eba6a02f82e3a4ab825ed296274e3aca1",
///     "suHyeJdnJuJNU34;23",
/// );
/// ```
Adds a subaccount to an account
Specify the stored account with its id (`account_id`) , `snapshot_password` is required to decrypt/encrypt the
snapshot file.

`label` the name that you want to call it, only for anecdotal purpose

`account_id` id of the account to which a subaccount will be added

`snapshot_password` password required for decrypt/encrypt snapshot file
Adds a subaccount to an account Specify the stored account with its id ( ` account_id ` ) ` snapshot_password ` is required to decrypt / encrypt the snapshot file . ` label ` the name that you want to call it only for anecdotal purpose ` account_id ` id of the account to which a subaccount will be added ` snapshot_password ` password required for decrypt / encrypt snapshot file
pub fn subaccount_add(&self, label: &str, account_id: &str, snapshot_password: &str) -> storage::Id {
        // todo: remove return
        let mut account = self.account_get_by_id(&account_id, snapshot_password);
        let subaccount = SubAccount::new(String::from(label));
        account.add_sub_account(subaccount);
        self.account_update(&mut account, snapshot_password)
    }
pub fn subaccount_add ( & self , label : & str , account_id : & str , snapshot_password : & str ) -> storage :: Id { // todo: remove return let mut account = self . account_get_by_id ( & account_id , snapshot_password ) ; let subaccount = SubAccount :: new ( String :: from ( label ) ) ; account . add_sub_account ( subaccount ) ; self . account_update ( & mut account , snapshot_password ) }
Adds a subaccount to an account
Specify the stored account with its id (`account_id`) , `snapshot_password` is required to decrypt/encrypt the
snapshot file.
Adds a subaccount to an account Specify the stored account with its id ( ` account_id ` ) ` snapshot_password ` is required to decrypt / encrypt the snapshot file .
&self
label
&str
account_id
&str
snapshot_password
&str
example
None