pub struct ScalingCondition {
pub threshold: usize,
pub from_archetype: OrgArchetype,
pub to_archetype: OrgArchetype,
}Expand description
Scaling condition: Triggers when member count exceeds threshold
Typically used for Holacracy → Hierarchy transition when organization grows too large for self-organization.
Fields§
§threshold: usizeMember count threshold
from_archetype: OrgArchetypeSource archetype to check
to_archetype: OrgArchetypeTarget archetype if triggered
Implementations§
Source§impl ScalingCondition
impl ScalingCondition
Sourcepub fn new(threshold: usize, from: OrgArchetype, to: OrgArchetype) -> Self
pub fn new(threshold: usize, from: OrgArchetype, to: OrgArchetype) -> Self
Trait Implementations§
Source§impl Clone for ScalingCondition
impl Clone for ScalingCondition
Source§fn clone(&self) -> ScalingCondition
fn clone(&self) -> ScalingCondition
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 moreSource§impl Debug for ScalingCondition
impl Debug for ScalingCondition
Source§impl TransitionCondition for ScalingCondition
impl TransitionCondition for ScalingCondition
Source§fn evaluate(
&self,
_faction_id: &str,
current: OrgArchetype,
context: &ConditionContext,
) -> Option<TransitionTrigger>
fn evaluate( &self, _faction_id: &str, current: OrgArchetype, context: &ConditionContext, ) -> Option<TransitionTrigger>
Evaluate whether a transition should occur Read more
Auto Trait Implementations§
impl Freeze for ScalingCondition
impl RefUnwindSafe for ScalingCondition
impl Send for ScalingCondition
impl Sync for ScalingCondition
impl Unpin for ScalingCondition
impl UnsafeUnpin for ScalingCondition
impl UnwindSafe for ScalingCondition
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> Component for T
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more