Skip to main content

Outcome

Struct Outcome 

Source
pub struct Outcome {
    pub id: u64,
    pub replied: bool,
    pub already_replied: bool,
    pub already_resolved: bool,
    pub resolved: bool,
    pub unresolved: bool,
    pub url: Option<String>,
    pub body: Option<String>,
    pub skipped: Option<String>,
    pub failed: Option<String>,
    /* private fields */
}
Expand description

What happened to one thread, or in a dry run what would.

Fields§

§id: u64§replied: bool§already_replied: bool

The reply was already the thread’s last comment, so it was not posted again.

§already_resolved: bool

The thread was resolved before: the reply went in, and it stays resolved.

§resolved: bool§unresolved: bool§url: Option<String>

The reply’s URL.

§body: Option<String>

In a dry run, the reply exactly as it would be posted.

§skipped: Option<String>§failed: Option<String>

Implementations§

Source§

impl Outcome

Source

pub fn posts_sha(&self) -> bool

Whether this will post a reply that names {sha}.

Source

pub fn changes_resolution(&self) -> bool

Whether this will resolve or unresolve the thread.

Trait Implementations§

Source§

impl Debug for Outcome

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Outcome

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Serialize for Outcome

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.