pub struct Objection {
pub persona: String,
pub severity: Severity,
pub reason: String,
pub text: String,
pub target: String,
pub held: bool,
}Expand description
One objection a persona raised against a target (an issue, or a span on it).
Fields§
§persona: String§severity: Severity§reason: StringRequired for a blocking mark. Empty means the mark did not take, and the objection is a nit.
text: String§target: String§held: boolA ballot that still holds a minority option on an issue whose substance has not settled. Filed once, at the top of a tree only.
Implementations§
Source§impl Objection
impl Objection
pub fn nit(persona: &str, text: &str, target: &str) -> Self
pub fn wording(persona: &str, text: &str, target: &str) -> Self
pub fn style(persona: &str, text: &str, target: &str) -> Self
pub fn blocking(persona: &str, reason: &str, text: &str, target: &str) -> Self
Sourcepub fn files_as_child(&self) -> bool
pub fn files_as_child(&self) -> bool
A blocking mark with a reason. Anything else stays a note.
Trait Implementations§
impl Eq for Objection
impl StructuralPartialEq for Objection
Auto Trait Implementations§
impl Freeze for Objection
impl RefUnwindSafe for Objection
impl Send for Objection
impl Sync for Objection
impl Unpin for Objection
impl UnsafeUnpin for Objection
impl UnwindSafe for Objection
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,
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.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
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