pub struct GithubTextAsk {
pub fingerprint: String,
pub title: bool,
pub body: bool,
pub categories: Vec<String>,
pub question: Option<String>,
pub asks: u32,
pub resolved: bool,
pub chosen_title: Option<String>,
}Expand description
The owner question filed when the posting gate withheld a pull request
title or description, and how it ended. One record per rejected text
(fingerprint); see github_text for the flow.
Fields§
§fingerprint: StringHash of the rejected title and body; the text itself is never stored.
title: boolThe title is withheld.
body: boolThe description is withheld.
categories: Vec<String>Rule categories that fired.
question: Option<String>The question currently standing, if one was filed.
asks: u32Questions filed so far (at most 2: the second follows a bad reply).
resolved: boolThe decision has been made (saved before the pull request is opened, so it is applied once and survives a restart).
chosen_title: Option<String>With resolved: the owner’s vetted replacement title; None means the
neutral text for every withheld field.
Trait Implementations§
Source§impl Clone for GithubTextAsk
impl Clone for GithubTextAsk
Source§impl Debug for GithubTextAsk
impl Debug for GithubTextAsk
Source§impl<'de> Deserialize<'de> for GithubTextAsk
impl<'de> Deserialize<'de> for GithubTextAsk
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 GithubTextAsk
Source§impl PartialEq for GithubTextAsk
impl PartialEq for GithubTextAsk
Source§impl Serialize for GithubTextAsk
impl Serialize for GithubTextAsk
impl StructuralPartialEq for GithubTextAsk
Auto Trait Implementations§
impl Freeze for GithubTextAsk
impl RefUnwindSafe for GithubTextAsk
impl Send for GithubTextAsk
impl Sync for GithubTextAsk
impl Unpin for GithubTextAsk
impl UnsafeUnpin for GithubTextAsk
impl UnwindSafe for GithubTextAsk
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<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<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