Skip to main content

MoveRequest

Struct MoveRequest 

Source
pub struct MoveRequest<'a> {
    pub issue: &'a Issue,
    pub to: &'a str,
    pub transition_override: Option<&'a str>,
    pub over: Option<&'a OverrideRequest>,
}
Expand description

One move, as a surface asks for it.

Fields§

§issue: &'a Issue

The issue being moved.

§to: &'a str

The column it is being moved to.

§transition_override: Option<&'a str>

A reason for a transition override (#183’s own gate, e.g. leaving a terminal column). Separate from the WIP override below: they are two different gates, and a caller may need either, both or neither.

§over: Option<&'a OverrideRequest>

An authorized override of a blocking WIP limit, when the caller has one.

Implementations§

Source§

impl<'a> MoveRequest<'a>

Source

pub const fn new(issue: &'a Issue, to: &'a str) -> Self

A move with no override of either kind.

Source

pub const fn because(self, reason: &'a str) -> Self

Attach a reason for #183’s own transition gate.

Source

pub const fn overriding(self, over: &'a OverrideRequest) -> Self

Attach a WIP override.

Auto Trait Implementations§

§

impl<'a> Freeze for MoveRequest<'a>

§

impl<'a> RefUnwindSafe for MoveRequest<'a>

§

impl<'a> Send for MoveRequest<'a>

§

impl<'a> Sync for MoveRequest<'a>

§

impl<'a> Unpin for MoveRequest<'a>

§

impl<'a> UnsafeUnpin for MoveRequest<'a>

§

impl<'a> UnwindSafe for MoveRequest<'a>

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> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
where F: FnOnce(&Self) -> bool,

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
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.