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 IssueThe issue being moved.
to: &'a strThe 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>
impl<'a> MoveRequest<'a>
Sourcepub const fn new(issue: &'a Issue, to: &'a str) -> Self
pub const fn new(issue: &'a Issue, to: &'a str) -> Self
A move with no override of either kind.
Sourcepub const fn because(self, reason: &'a str) -> Self
pub const fn because(self, reason: &'a str) -> Self
Attach a reason for #183’s own transition gate.
Sourcepub const fn overriding(self, over: &'a OverrideRequest) -> Self
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> 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> 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