pub struct OwnershipHierarchy {
pub root: String,
pub children: Vec<OwnershipHierarchyNode>,
}Expand description
Builds a consolidated ownership hierarchy.
Fields§
§root: StringRoot company code.
children: Vec<OwnershipHierarchyNode>Children with ownership percentage.
Implementations§
Source§impl OwnershipHierarchy
impl OwnershipHierarchy
Sourcepub fn from_relationships(
root: &str,
relationships: &[IntercompanyRelationship],
) -> Self
pub fn from_relationships( root: &str, relationships: &[IntercompanyRelationship], ) -> Self
Builds hierarchy from relationships.
Sourcepub fn all_companies(&self) -> Vec<(String, Decimal)>
pub fn all_companies(&self) -> Vec<(String, Decimal)>
Returns all companies with effective ownership.
Trait Implementations§
Source§impl Clone for OwnershipHierarchy
impl Clone for OwnershipHierarchy
Source§fn clone(&self) -> OwnershipHierarchy
fn clone(&self) -> OwnershipHierarchy
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for OwnershipHierarchy
impl RefUnwindSafe for OwnershipHierarchy
impl Send for OwnershipHierarchy
impl Sync for OwnershipHierarchy
impl Unpin for OwnershipHierarchy
impl UnwindSafe for OwnershipHierarchy
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