pub struct PromotionView {
pub allowed: bool,
pub reasons: Vec<String>,
pub verdict: String,
pub paper_days: Option<i64>,
pub paper_verdict: Option<String>,
}Expand description
Every shape at the root as well, because a window names a view on nearly
every line and arvo_api::research::StudyView would be noise. The names
do not collide: proto has no overloading and neither does this.
Every shape at the root as well, because a window names a view on nearly
every line and arvo_api::research::StudyView would be noise. The names
do not collide: proto has no overloading and neither does this.
Every shape at the root as well, because a window names a view on nearly
every line and arvo_api::research::StudyView would be noise. The names
do not collide: proto has no overloading and neither does this.
The promotion gate’s answer for one finding and one executor (#194).
Fields§
§allowed: bool§reasons: Vec<String>Every reason it is not, in the gate’s words. Empty when allowed.
verdict: StringThe finding’s own verdict: Supported, NotSupported or Inconclusive. Empty when the finding cannot be opened.
paper_days: Option<i64>Days the finding has run on paper, by its paper record; absent when it has not.
paper_verdict: Option<String>The paper session’s last verdict against the finding (holding, diverging, inconclusive), when it has one.
Implementations§
Source§impl PromotionView
impl PromotionView
Sourcepub fn paper_days(&self) -> i64
pub fn paper_days(&self) -> i64
Returns the value of paper_days, or the default value if paper_days is unset.
Sourcepub fn paper_verdict(&self) -> &str
pub fn paper_verdict(&self) -> &str
Returns the value of paper_verdict, or the default value if paper_verdict is unset.
Trait Implementations§
Source§impl Clone for PromotionView
impl Clone for PromotionView
Source§impl Debug for PromotionView
impl Debug for PromotionView
Source§impl Default for PromotionView
impl Default for PromotionView
Source§impl<'de> Deserialize<'de> for PromotionView
impl<'de> Deserialize<'de> for PromotionView
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>,
impl Eq for PromotionView
Source§impl Hash for PromotionView
impl Hash for PromotionView
Source§impl Message for PromotionView
impl Message for PromotionView
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self.