Skip to main content

Crate legalis_vn

Crate legalis_vn 

Source
Expand description

§Legalis-VN: Vietnam Jurisdiction Support

Comprehensive Vietnamese legal system implementation for Legalis-RS.

Vietnam uses a Socialist Civil Law system with market economy characteristics (Đổi Mới - economic renovation). Key features:

  • Single-party state (Communist Party of Vietnam)
  • State ownership of all land (land use rights only)
  • Mandatory trade union involvement
  • French civil law influence

§Hierarchy of Laws

  1. Hiến pháp - Constitution (2013)
  2. Luật / Bộ luật - Laws/Codes (passed by National Assembly)
  3. Pháp lệnh - Ordinances (Standing Committee)
  4. Nghị định - Decrees (Government)
  5. Thông tư - Circulars (Ministries)
  6. Quyết định - Decisions

§Modules

Supports all Vietnamese legal instrument types:

  • Luật số [num]/[year]/QH[session] - Laws
  • Nghị định số [num]/[year]/NĐ-CP - Decrees
  • Thông tư số [num]/[year]/TT-[ministry] - Circulars

§common - Shared Utilities

  • Vietnamese public holidays (Tết, national days)
  • VND currency formatting
  • Wage regions (Vùng I-IV)
  • Province information

§labor_code - Bộ luật Lao động 2019

Vietnam’s Labor Code (Law No. 45/2019/QH14):

  • 48 hours/week maximum (Article 105)
  • Contract types: indefinite, fixed-term, seasonal
  • Severance: 0.5 months per year (Article 46)
  • Social insurance mandatory (BHXH, BHYT, BHTN)

§enterprise - Luật Doanh nghiệp 2020

Enterprise Law (Law No. 59/2020/QH14):

  • Enterprise types (LLC, JSC, Partnership)
  • Registration requirements
  • Corporate governance

§investment - Luật Đầu tư 2020

Investment Law (Law No. 61/2020/QH14):

  • Conditional investment sectors
  • Foreign investment rules
  • Investment incentives (tax, land)
  • Special Economic Zones

§State Land Ownership

All land in Vietnam is owned by the state. Investors obtain:

  • Land Use Rights (Quyền sử dụng đất) - transferable
  • Red Book (Sổ đỏ) - residential land use certificate
  • Pink Book (Sổ hồng) - apartment ownership certificate

§Social Insurance (Bảo hiểm xã hội)

Mandatory contributions:

  • BHXH (Social Insurance): 25.5% total
  • BHYT (Health Insurance): 4.5% total
  • BHTN (Unemployment): 2% total

§Quick Start

use legalis_vn::{
    citation::{VietnameseCitation, common_citations},
    labor_code::{validate_contract, EmploymentContract, WorkingHours, ContractType},
    enterprise::{EnterpriseType, EnterpriseRegistration, validate_registration},
    common::{Vnd, WageRegion, Province},
};

// Citation example
let citation = VietnameseCitation::luat(45, 2019, 14)
    .with_title_vi("Lao động")
    .with_article(105);
println!("{}", citation); // Luật Lao động số 45/2019/QH14, Điều 105

// Currency formatting
let salary = Vnd::from_trieu(10);
println!("{}", salary); // 10.000.000 đ

// Minimum wage by region
let min_wage = WageRegion::Region1.minimum_wage_2024();
println!("Vùng I: {}", min_wage);

§Major Laws Covered

LawName (VI)Name (EN)
45/2019/QH14Bộ luật Lao độngLabor Code
59/2020/QH14Luật Doanh nghiệpEnterprise Law
61/2020/QH14Luật Đầu tưInvestment Law
91/2015/QH13Bộ luật Dân sựCivil Code
100/2015/QH13Bộ luật Hình sựCriminal Code
45/2013/QH13Luật Đất đaiLand Law
50/2014/QH13Luật Xây dựngConstruction Law
50/2005/QH11Luật Sở hữu trí tuệIntellectual Property Law
23/2018/QH14Luật Cạnh tranhCompetition Law
24/2018/QH14Luật An ninh mạngCybersecurity Law
47/2010/QH12Luật các Tổ chức tín dụngLaw on Credit Institutions
59/2010/QH12Luật Bảo vệ quyền lợi người tiêu dùngConsumer Protection Law

§Disclaimer

This library is for educational and informational purposes. For legal matters, consult qualified Vietnamese legal professionals (luật sư).

Re-exports§

pub use citation::CodeType;
pub use citation::Issuer;
pub use citation::LegalInstrumentType;
pub use citation::Ministry;
pub use citation::VietnameseCitation;
pub use citation::common_citations;
pub use common::Province;
pub use common::VietnameseHoliday;
pub use common::VietnameseHolidayType;
pub use common::Vnd;
pub use common::WageRegion;
pub use common::get_public_holidays;
pub use common::is_public_holiday;
pub use common::is_working_day;
pub use common::working_days_between;
pub use labor_code::ContractType;
pub use labor_code::EmploymentContract;
pub use labor_code::LaborCodeError;
pub use labor_code::LaborCodeResult;
pub use labor_code::LaborCompliance;
pub use labor_code::LeaveType;
pub use labor_code::Severance;
pub use labor_code::SocialInsurance;
pub use labor_code::TerminationType;
pub use labor_code::WorkingHours;
pub use labor_code::calculate_severance;
pub use labor_code::calculate_social_insurance;
pub use labor_code::get_labor_checklist;
pub use labor_code::validate_contract;
pub use labor_code::validate_labor_compliance;
pub use labor_code::validate_minimum_wage;
pub use labor_code::validate_working_hours;
pub use enterprise::EnterpriseError;
pub use enterprise::EnterpriseRegistration;
pub use enterprise::EnterpriseResult;
pub use enterprise::EnterpriseType;
pub use enterprise::get_enterprise_checklist;
pub use enterprise::validate_registration;
pub use investment::InvestmentError;
pub use investment::InvestmentIncentive;
pub use investment::InvestmentProject;
pub use investment::InvestmentResult;
pub use investment::InvestmentSector;
pub use investment::SpecialEconomicZone;
pub use investment::check_sector_eligibility;
pub use investment::get_investment_checklist;
pub use investment::validate_investment_project;
pub use civil_code::CivilCapacity;
pub use civil_code::CivilCodeError;
pub use civil_code::CivilCodePart;
pub use civil_code::CivilCodeResult;
pub use civil_code::ContractType as CivilContractType;
pub use civil_code::InheritancePriority;
pub use civil_code::InheritanceType;
pub use civil_code::PropertyType;
pub use civil_code::StatuteOfLimitations;
pub use civil_code::calculate_statutory_inheritance_share;
pub use civil_code::get_civil_code_checklist;
pub use civil_code::validate_civil_capacity;
pub use civil_code::validate_statute_of_limitations;
pub use criminal_code::AggravatingCircumstance;
pub use criminal_code::CrimeSeverity;
pub use criminal_code::CriminalAge;
pub use criminal_code::CriminalCodeError;
pub use criminal_code::CriminalCodeResult;
pub use criminal_code::MitigatingCircumstance;
pub use criminal_code::Penalty;
pub use criminal_code::SupplementaryPenalty;
pub use criminal_code::calculate_adjusted_penalty;
pub use criminal_code::get_criminal_code_checklist;
pub use criminal_code::validate_criminal_liability;
pub use criminal_code::validate_penalty;
pub use tax_law::CitRate;
pub use tax_law::CitResult;
pub use tax_law::CitTaxableIncome;
pub use tax_law::PersonalDeduction;
pub use tax_law::PitBracket;
pub use tax_law::PitCalculation;
pub use tax_law::PitIncomeType;
pub use tax_law::PitResult;
pub use tax_law::VatDeclaration;
pub use tax_law::VatRate;
pub use tax_law::VatResult;
pub use tax_law::calculate_progressive_pit;
pub use tax_law::calculate_vat;
pub use tax_law::determine_cit_rate;
pub use tax_law::get_cit_checklist;
pub use tax_law::get_pit_checklist;
pub use tax_law::get_vat_checklist;
pub use cybersecurity_law::ContentModerationRequirement;
pub use cybersecurity_law::CybersecurityEntity;
pub use cybersecurity_law::CybersecurityResult;
pub use cybersecurity_law::DataLocalizationCompliance;
pub use cybersecurity_law::LocalizedDataType;
pub use cybersecurity_law::ProhibitedContent;
pub use cybersecurity_law::get_cybersecurity_checklist;
pub use cybersecurity_law::validate_content_removal_deadline;
pub use cybersecurity_law::validate_data_localization;
pub use competition_law::AntiCompetitiveAgreement;
pub use competition_law::CompetitionResult;
pub use competition_law::MarketPosition;
pub use competition_law::MarketShareLevel;
pub use competition_law::MergerThreshold;
pub use competition_law::MergerTransaction;
pub use competition_law::get_competition_checklist;
pub use competition_law::validate_merger_transaction;
pub use competition_law::validate_no_abuse_of_dominance;
pub use intellectual_property::CopyrightSubject;
pub use intellectual_property::IpInfringement;
pub use intellectual_property::IpRegistration;
pub use intellectual_property::IpResult;
pub use intellectual_property::IpRightType;
pub use intellectual_property::PatentRequirements;
pub use intellectual_property::TrademarkType;
pub use intellectual_property::check_protection_expired;
pub use intellectual_property::get_ip_checklist;
pub use intellectual_property::validate_patent_requirements;
pub use land_law::AgriculturalLandType;
pub use land_law::LandCategory;
pub use land_law::LandCertificateType;
pub use land_law::LandCompensation;
pub use land_law::LandResult;
pub use land_law::LandUseDuration;
pub use land_law::LandUseRight;
pub use land_law::NonAgriculturalLandType;
pub use land_law::can_foreigners_acquire;
pub use land_law::get_land_law_checklist;
pub use land_law::validate_land_use_duration;
pub use construction_law::ComponentType;
pub use construction_law::ConstructionActivity;
pub use construction_law::ConstructionClass;
pub use construction_law::ConstructionCompliance;
pub use construction_law::ConstructionPermitType;
pub use construction_law::ConstructionResult;
pub use construction_law::FireSafetyRank;
pub use construction_law::QualityControlLevel;
pub use construction_law::WarrantyPeriod;
pub use construction_law::get_construction_checklist;
pub use construction_law::validate_construction_compliance;
pub use construction_law::validate_warranty_period;
pub use consumer_protection::ConsumerComplaint;
pub use consumer_protection::ConsumerProtectionResult;
pub use consumer_protection::ConsumerRight;
pub use consumer_protection::ProductRecall;
pub use consumer_protection::ProductWarranty;
pub use consumer_protection::RecallReason;
pub use consumer_protection::RemedyType;
pub use consumer_protection::UnfairPractice;
pub use consumer_protection::get_consumer_protection_checklist;
pub use consumer_protection::validate_product_recall;
pub use consumer_protection::validate_warranty;
pub use banking_law::BankingActivity;
pub use banking_law::BankingResult;
pub use banking_law::CapitalAdequacyRatio;
pub use banking_law::CreditInstitutionType;
pub use banking_law::LendingLimit;
pub use banking_law::LoanClassification;
pub use banking_law::ReserveRequirement;
pub use banking_law::get_banking_checklist;
pub use banking_law::validate_car;
pub use banking_law::validate_charter_capital;
pub use banking_law::validate_lending_limit;

Modules§

banking_law
Vietnamese Law on Credit Institutions (Luật các Tổ chức tín dụng)
citation
Vietnamese Legal Citation System
civil_code
Vietnamese Civil Code 2015 (Bộ luật Dân sự 2015) - Law No. 91/2015/QH13
common
Common utilities for Vietnamese legal system
competition_law
Vietnamese Competition Law 2018 (Luật Cạnh tranh 2018) - Law No. 23/2018/QH14
construction_law
Vietnamese Construction Law 2014 (Luật Xây dựng 2014) - Law No. 50/2014/QH13
consumer_protection
Vietnamese Law on Consumer Rights Protection (Luật Bảo vệ quyền lợi người tiêu dùng)
criminal_code
Vietnamese Criminal Code 2015 (Bộ luật Hình sự 2015) - Law No. 100/2015/QH13
cybersecurity_law
Vietnamese Cybersecurity Law 2018 (Luật An ninh mạng 2018) - Law No. 24/2018/QH14
enterprise
Vietnamese Enterprise Law 2020 (Luật Doanh nghiệp 2020) - Law No. 59/2020/QH14
intellectual_property
Vietnamese Intellectual Property Law (Luật Sở hữu trí tuệ)
investment
Vietnamese Investment Law 2020 (Luật Đầu tư 2020) - Law No. 61/2020/QH14
labor_code
Vietnamese Labor Code 2019 (Bộ luật Lao động 2019) - Law No. 45/2019/QH14
land_law
Vietnamese Land Law 2013 (Luật Đất đai 2013) - Law No. 45/2013/QH13
tax_law
Vietnamese Tax Law Module