pub struct InForceMethod {
pub method: LotMethod,
pub scoped: bool,
}Expand description
The cost-basis method currently in force for a wallet, plus its provenance — the UI-facing answer to “what method governs this account, and is it an explicit per-account election or inherited?”
Fields§
§method: LotMethod§scoped: booltrue ⇒ the method came from a PER-ACCOUNT (scoped) election for this wallet; false ⇒ it is
inherited from a GLOBAL election or the HIFO default (pre-2025 dates: the pre2025_method).
Trait Implementations§
Source§impl Clone for InForceMethod
impl Clone for InForceMethod
Source§fn clone(&self) -> InForceMethod
fn clone(&self) -> InForceMethod
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 InForceMethod
Source§impl Debug for InForceMethod
impl Debug for InForceMethod
impl Eq for InForceMethod
Source§impl PartialEq for InForceMethod
impl PartialEq for InForceMethod
impl StructuralPartialEq for InForceMethod
Auto Trait Implementations§
impl Freeze for InForceMethod
impl RefUnwindSafe for InForceMethod
impl Send for InForceMethod
impl Sync for InForceMethod
impl Unpin for InForceMethod
impl UnsafeUnpin for InForceMethod
impl UnwindSafe for InForceMethod
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.