pub struct OrgNode {
pub agent_id: String,
pub role: OrgRole,
pub reports_to: Option<String>,
pub budget_cents: u64,
pub goals: Vec<String>,
}Expand description
A node in an organisational chart, representing one agent’s position.
Fields§
§agent_id: StringThe agent occupying this position.
role: OrgRoleOrganisational role.
reports_to: Option<String>Who this agent reports to (None for the CEO / root).
budget_cents: u64Budget allocated to this node, in cents (avoids float precision).
goals: Vec<String>High-level goals assigned to this node.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for OrgNode
impl<'de> Deserialize<'de> for OrgNode
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for OrgNode
impl RefUnwindSafe for OrgNode
impl Send for OrgNode
impl Sync for OrgNode
impl Unpin for OrgNode
impl UnsafeUnpin for OrgNode
impl UnwindSafe for OrgNode
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