pub struct Ask<'a> {
pub forge: Forge,
pub repo: &'a str,
pub reference: &'a Reference,
pub base: Option<&'a str>,
pub host: Option<&'a str>,
pub apply: bool,
pub seatable: &'a dyn Fn(&str) -> Result<(), RkError>,
}Expand description
What one call asks the forge for.
Fields§
§forge: ForgeThe forge to act on.
repo: &'a strThe project path.
reference: &'a ReferenceThe issue, as the operator named it.
base: Option<&'a str>The remote branch a new branch starts from.
host: Option<&'a str>The API host to name explicitly, where one has to be named.
glab api resolves its host from the working directory and falls
back to gitlab.com, which is right for a clone whose remote it
can read and wrong for one with no remote: there, a self-managed
issue URL would be acted on at gitlab.com. So this carries the
reference’s host and not the remote’s — a remote names a
transport host, which an instance may serve under another name.
apply: boolWhether to write, at the forge and afterwards.
seatable: &'a dyn Fn(&str) -> Result<(), RkError>Every local refusal the seat carries, run where the forge lets rk know the name before it writes.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Ask<'a>
impl<'a> !Send for Ask<'a>
impl<'a> !Sync for Ask<'a>
impl<'a> !UnwindSafe for Ask<'a>
impl<'a> Freeze for Ask<'a>
impl<'a> Unpin for Ask<'a>
impl<'a> UnsafeUnpin for Ask<'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