Function ccash_rs::methods::admin::set_balance[][src]

pub async fn set_balance(
    session: &CCashSession,
    admin_user: &CCashUser,
    username: &str,
    new_balance: u32
) -> Result<(), CCashError>
Expand description

Sets the balance of a user with the given username to the amount described by new_balance. This function requires admin_user to be the admin account for the CCash instance.