pub struct CategoryProfile {
pub category: VatCategory,
pub groups: Groups,
pub rate: RateRule,
pub tax: TaxRule,
}Expand description
Per-family grouping, rate, and tax constraints.
Fields§
§category: VatCategoryUNCL 5305 family.
groups: GroupsRequired BG-23 group count.
rate: RateRuleAllowed rate.
tax: TaxRuleAllowed BT-117.
Implementations§
Source§impl CategoryProfile
impl CategoryProfile
Sourcepub const fn grouped_by_rate(self) -> bool
pub const fn grouped_by_rate(self) -> bool
Whether BG-23 is keyed on rate as well as category.
Trait Implementations§
Source§impl Clone for CategoryProfile
impl Clone for CategoryProfile
Source§fn clone(&self) -> CategoryProfile
fn clone(&self) -> CategoryProfile
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for CategoryProfile
Auto Trait Implementations§
impl Freeze for CategoryProfile
impl RefUnwindSafe for CategoryProfile
impl Send for CategoryProfile
impl Sync for CategoryProfile
impl Unpin for CategoryProfile
impl UnsafeUnpin for CategoryProfile
impl UnwindSafe for CategoryProfile
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more