Under federal law, you have the right to bankruptcy protection if you are deeply in debt. Filing gives you breathing room to fix your finances, though bankruptcy can make it harder to get credit for up to a decade. Often, that won’t matter because if you’re struggling you probably have poor credit anyway.┬áThere are two main types of bankruptcy filings for individuals.