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
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>,
Deserialize this value from the given Serde deserializer. Read more
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
Returns the encoded length of the message without a length delimiter.
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,
Encodes the message to a buffer. Read more
Source§fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8> ⓘwhere
Self: Sized,
Encodes the message to a newly allocated buffer.
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,
Encodes the message with a length-delimiter to a buffer. Read more
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,
Encodes the message with a length-delimiter to a newly allocated buffer.
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Decodes an instance of the message from a buffer. Read more
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,
Decodes a length-delimited instance of the message from the buffer.
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,
Decodes an instance of the message from a buffer, and merges it into
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,
Decodes a length-delimited instance of the message from buffer, and
merges it into
self.Source§impl PartialEq for PromotionView
impl PartialEq for PromotionView
Source§impl Serialize for PromotionView
impl Serialize for PromotionView
impl StructuralPartialEq for PromotionView
Auto Trait Implementations§
impl Freeze for PromotionView
impl RefUnwindSafe for PromotionView
impl Send for PromotionView
impl Sync for PromotionView
impl Unpin for PromotionView
impl UnsafeUnpin for PromotionView
impl UnwindSafe for PromotionView
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