pub struct PlanConsensus {
pub plan: String,
pub title: String,
pub children: Vec<ChildConsensus>,
}Expand description
What a plan’s children hold, child by child.
A report rather than an average. Weighting children is a judgement the tracker has no basis for, a child that settled split has no single position to fold in, and a child nobody voted on is absent rather than neutral, so there is no honest number to reduce these rows to.
Fields§
§plan: StringThe plan the children hang under.
title: StringHeading title of the plan.
children: Vec<ChildConsensus>One row per child, in the order children walks them.
Implementations§
Source§impl PlanConsensus
impl PlanConsensus
Sourcepub fn unvoted(&self) -> Vec<&ChildConsensus>
pub fn unvoted(&self) -> Vec<&ChildConsensus>
Children nobody has voted on.
Sourcepub fn split(&self) -> Vec<&ChildConsensus>
pub fn split(&self) -> Vec<&ChildConsensus>
Children whose own reviewers split into groups that do not listen to each other.
Trait Implementations§
Source§impl Clone for PlanConsensus
impl Clone for PlanConsensus
Source§fn clone(&self) -> PlanConsensus
fn clone(&self) -> PlanConsensus
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 PlanConsensus
impl Debug for PlanConsensus
Source§impl<'de> Deserialize<'de> for PlanConsensus
impl<'de> Deserialize<'de> for PlanConsensus
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PlanConsensus, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PlanConsensus, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for PlanConsensus
impl PartialEq for PlanConsensus
Source§impl Serialize for PlanConsensus
impl Serialize for PlanConsensus
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for PlanConsensus
Auto Trait Implementations§
impl Freeze for PlanConsensus
impl RefUnwindSafe for PlanConsensus
impl Send for PlanConsensus
impl Sync for PlanConsensus
impl Unpin for PlanConsensus
impl UnsafeUnpin for PlanConsensus
impl UnwindSafe for PlanConsensus
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> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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